a few small fixes, about to add 404 exceptions most places i do fetches

This commit is contained in:
Me
2023-01-16 21:47:02 +01:00
parent 0499d92818
commit 86f7add6ed
5 changed files with 48 additions and 18 deletions

View File

@@ -85,6 +85,8 @@ export class FriendshipService {
if (!friendship) {
throw new HttpException(`There is no such friendship`, HttpStatus.NOT_FOUND);
// throw new HttpException(`There is no such friendship`, HttpStatus.NO_CONTENT);
// throw new HttpException(`There is no such friendship`, 204);
}
return new SendableFriendship(friendship);
}