feat: add upload experiment, attachment scenarios and health extension
This commit is contained in:
@@ -137,6 +137,10 @@ export class AttachmentsService implements OnModuleInit {
|
||||
this.logger.warn(`compensation failed for ${objectKey}`);
|
||||
});
|
||||
}
|
||||
if (error instanceof Prisma.PrismaClientUnknownRequestError) {
|
||||
this.logger.error(`metadata insert failed for ${objectKey}`);
|
||||
throw new ApiError('unavailable', 'database unavailable');
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user