We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fcfff7 commit 99c4887Copy full SHA for 99c4887
services/apps/alcs/src/alcs/compliance-and-enforcement/compliance-and-enforcement.service.ts
@@ -64,6 +64,11 @@ export class ComplianceAndEnforcementService {
64
}
65
66
async delete(uuid: string): Promise<DeleteResult> {
67
+ const entity = await this.repository.findOneBy({ uuid });
68
+ if (entity === null) {
69
+ throw new ServiceNotFoundException('A C&E file with this UUID does not exist. Unable to delete.');
70
+ }
71
+
72
return await this.repository.delete(uuid);
73
74
0 commit comments