feat: added defaultProduct as null

This commit is contained in:
=
2025-07-23 14:31:53 +05:30
parent e0cbfe8865
commit 7c87feb546
@@ -13,7 +13,7 @@ const newProject = async (knex: Knex, projectId: string, projectType: ProjectTyp
await knex(TableName.Project).insert({ await knex(TableName.Project).insert({
...project, ...project,
type: projectType, type: projectType,
defaultProduct: projectType, defaultProduct: null,
// @ts-ignore id is required // @ts-ignore id is required
id: newProjectId, id: newProjectId,
slug: slugify(`${project?.name}-${alphaNumericNanoId(8)}`) slug: slugify(`${project?.name}-${alphaNumericNanoId(8)}`)