project forms

This commit is contained in:
2025-07-03 04:10:38 +02:00
parent 3195aaae81
commit b58024b66a
8 changed files with 982 additions and 763 deletions

View File

@@ -61,10 +61,15 @@ export const ProjectRouter = router({
)
}
const { input } = opts;
return await db.update(project)
const updateProj = await db.update(project)
.set(input.update)
.returning()
.where(eq(project.id,input.by.id))
.where(eq(project.id,input.by.id));
if (updateProj[0] !== undefined) {
return updateProj[0]
} else {
return null
}
}),
stack: StackRouter,
})