mirror of
https://github.com/detleph/server.git
synced 2026-09-04 16:46:04 +02:00
patched review suggestions and discovered bugs
This commit is contained in:
@@ -28,7 +28,7 @@ const detailedOrganisation = {
|
||||
pid: true,
|
||||
name: true,
|
||||
date: true,
|
||||
description: true,
|
||||
briefDescription: true,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
@@ -191,7 +191,7 @@ export const updateOrganisation = async (
|
||||
});
|
||||
} catch (e) {
|
||||
if (e instanceof Prisma.PrismaClientKnownRequestError && e.code === "P2025") {
|
||||
throw new NotFoundError("discipline", pid);
|
||||
throw new NotFoundError("organisation", pid);
|
||||
}
|
||||
|
||||
throw e;
|
||||
|
||||
Reference in New Issue
Block a user