Correct formatting

This commit is contained in:
Stone_Red
2022-04-02 18:51:49 +02:00
parent 608710be60
commit 22d7865065
11 changed files with 41 additions and 29 deletions
+3 -3
View File
@@ -62,7 +62,7 @@ export const deleteRestaurant = async (req: Request, res: Response) => {
await prisma.restaurant.delete({
where: {
id: id,
}
},
});
res.status(HttpStatusCodes.NO_CONTENT).json();
@@ -79,8 +79,8 @@ export const getRestaurant = async (req: Request, res: Response) => {
const restaurant = await prisma.restaurant.findUnique({
where: {
id: id
}
id: id,
},
});
res.status(HttpStatusCodes.OK).json(restaurant);