Skip to content

Commit

Permalink
fix(app/worker/jobs): fix jobs resigning
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jun 21, 2024
1 parent 83a1b59 commit d566cc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,15 @@ export class JobAssignmentProfile extends AutomapperProfile {
mapper,
ResignJobDto,
ResignJobCommand,
forMember(
(destination) => destination.oracleAddress,
mapFrom((source) => source.address),
),
namingConventions({
source: new SnakeCaseNamingConvention(),
destination: new CamelCaseNamingConvention(),
}),
);
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,17 @@ export class ResignJobDto {
@AutoMap()
@IsString()
@ApiProperty()
assignment_id: string;
assignment_id: number;
}

export class ResignJobCommand {
@AutoMap()
oracleAddress: string;
@AutoMap()
assignmentId: string;
assignmentId: number;
token: string;
}
export class ResignJobData {
@AutoMap()
assignment_id: string;
assignment_id: number;
}

0 comments on commit d566cc9

Please sign in to comment.