Feat: Create project via org slug instead of org ID

This commit is contained in:
Daniel Hougaard
2024-03-17 18:48:09 +01:00
parent ce057f44ac
commit 12a6fba645
3 changed files with 34 additions and 8 deletions
@@ -160,7 +160,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
const project = await server.services.project.createProject({
actorId: req.permission.id,
actor: req.permission.type,
orgId: req.body.organizationId,
orgSlug: req.body.organizationSlug,
workspaceName: req.body.projectName,
slug: req.body.slug
});