feat: return null if no image exist
This commit is contained in:
parent
a6d8f1c7f6
commit
6750ba8c34
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ export class CustomerController extends Controller {
|
|||
this.setStatus(HttpStatus.CREATED);
|
||||
|
||||
return Object.assign(record, {
|
||||
imageUrl: await minio.presignedGetObject(
|
||||
imageUrl: await presignedGetObjectIfExist(
|
||||
MINIO_BUCKET,
|
||||
imageLocation(record.id),
|
||||
12 * 60 * 60,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue