Skip to content

Commit

Permalink
chore: relect on review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
pacyL2K19 committed Jan 22, 2025
1 parent f0edef3 commit 7a2a2a6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ export class RestApiCoreServiceV2 {
},
});

if (!recordToDelete) {
throw new BadRequestException(
`${capitalize(objectMetadataNameSingular)} to delete not found`,
);
}

await repository.delete(recordId);

return {
Expand Down

0 comments on commit 7a2a2a6

Please sign in to comment.