fix: missing image url
This commit is contained in:
parent
119fd02d22
commit
a16ad32a1f
1 changed files with 12 additions and 1 deletions
|
|
@ -599,7 +599,18 @@ export class EmployeeController extends Controller {
|
||||||
|
|
||||||
this.setStatus(HttpStatus.CREATED);
|
this.setStatus(HttpStatus.CREATED);
|
||||||
|
|
||||||
return record;
|
return Object.assign(record, {
|
||||||
|
profileImageUrl: await presignedGetObjectIfExist(
|
||||||
|
MINIO_BUCKET,
|
||||||
|
imageLocation(record.id),
|
||||||
|
12 * 60 * 60,
|
||||||
|
),
|
||||||
|
profileImageUploadUrl: await minio.presignedPutObject(
|
||||||
|
MINIO_BUCKET,
|
||||||
|
imageLocation(record.id),
|
||||||
|
12 * 60 * 60,
|
||||||
|
),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Delete("{employeeId}")
|
@Delete("{employeeId}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue