diff --git a/packages/apps/human-app/server/src/modules/job-assignment/job-assignment.mapper.profile.ts b/packages/apps/human-app/server/src/modules/job-assignment/job-assignment.mapper.profile.ts index bf3b22386f..1504643ae3 100644 --- a/packages/apps/human-app/server/src/modules/job-assignment/job-assignment.mapper.profile.ts +++ b/packages/apps/human-app/server/src/modules/job-assignment/job-assignment.mapper.profile.ts @@ -88,6 +88,10 @@ export class JobAssignmentProfile extends AutomapperProfile { mapper, ResignJobDto, ResignJobCommand, + forMember( + (destination) => destination.oracleAddress, + mapFrom((source) => source.address), + ), namingConventions({ source: new SnakeCaseNamingConvention(), destination: new CamelCaseNamingConvention(), @@ -95,4 +99,4 @@ export class JobAssignmentProfile extends AutomapperProfile { ); }; } -} +} \ No newline at end of file diff --git a/packages/apps/human-app/server/src/modules/job-assignment/model/job-assignment.model.ts b/packages/apps/human-app/server/src/modules/job-assignment/model/job-assignment.model.ts index 99f06c3802..5e9f07dd59 100644 --- a/packages/apps/human-app/server/src/modules/job-assignment/model/job-assignment.model.ts +++ b/packages/apps/human-app/server/src/modules/job-assignment/model/job-assignment.model.ts @@ -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; }