From 658b5eb669aaab31098139c865bf83f7d08a6fa4 Mon Sep 17 00:00:00 2001 From: Oliver Bryan <04oliverbryan@gmail.com> Date: Mon, 29 Dec 2025 05:31:33 +0000 Subject: [PATCH] multiple projects can be created with the same blob/key (just not in the same org) --- packages/backend/src/routes/project/create.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/routes/project/create.ts b/packages/backend/src/routes/project/create.ts index c479bf3..76535ef 100644 --- a/packages/backend/src/routes/project/create.ts +++ b/packages/backend/src/routes/project/create.ts @@ -16,9 +16,9 @@ export default async function projectCreate(req: BunRequest) { ); } - // check if project with blob already exists + // check if project with blob already exists in the organisation const existingProject = await getProjectByBlob(blob); - if (existingProject) { + if (existingProject?.organisationId === parseInt(organisationId, 10)) { return new Response(`project with blob ${blob} already exists`, { status: 400 }); }