feat: add upload experiment, attachment scenarios and health extension

This commit is contained in:
2026-11-05 16:26:15 +03:00
parent a7980a4cb8
commit 5c3cba4951
8 changed files with 552 additions and 8 deletions
+4
View File
@@ -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;
}
}