diff --git a/src/controllers/employee-controller.ts b/src/controllers/employee-controller.ts index 3d0905a..918314f 100644 --- a/src/controllers/employee-controller.ts +++ b/src/controllers/employee-controller.ts @@ -336,7 +336,13 @@ export class EmployeeController extends Controller { throw new HttpError(HttpStatus.NOT_FOUND, "Employee cannot be found.", "employeeNotFound"); } - return record; + return Object.assign(record, { + profileImageUrl: await presignedGetObjectIfExist( + MINIO_BUCKET, + imageLocation(employeeId), + 12 * 60 * 60, + ), + }); } @Post()