diff --git a/src/controllers/customer-controller.ts b/src/controllers/customer-controller.ts index c5a8510..ebcd031 100644 --- a/src/controllers/customer-controller.ts +++ b/src/controllers/customer-controller.ts @@ -200,7 +200,7 @@ export class CustomerController extends Controller { if (!record) throw new HttpError(HttpStatus.NOT_FOUND, "Customer cannot be found.", "data_not_found"); return Object.assign(record, { - imageUrl: await minio.presignedGetObject( + imageUrl: await presignedGetObjectIfExist( MINIO_BUCKET, imageLocation(record.id), 12 * 60 * 60,