refactor: adjust queries

This commit is contained in:
Mauricio Siu
2025-02-15 23:01:36 -06:00
parent 78c72b6337
commit 515d65d993
23 changed files with 538 additions and 138 deletions

View File

@@ -16,13 +16,13 @@ export type Project = typeof projects.$inferSelect;
export const createProject = async (
input: typeof apiCreateProject._type,
userId: string,
organizationId: string,
) => {
const newProject = await db
.insert(projects)
.values({
...input,
userId: userId,
organizationId: organizationId,
})
.returning()
.then((value) => value[0]);