feat: added defaultProduct as null

This commit is contained in:
=
2025-07-21 12:09:55 +05:30
parent e0cbfe8865
commit 7c87feb546

View File

@@ -13,7 +13,7 @@ const newProject = async (knex: Knex, projectId: string, projectType: ProjectTyp
await knex(TableName.Project).insert({
...project,
type: projectType,
defaultProduct: projectType,
defaultProduct: null,
// @ts-ignore id is required
id: newProjectId,
slug: slugify(`${project?.name}-${alphaNumericNanoId(8)}`)