a few small fixes, about to add 404 exceptions most places i do fetches
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user