responsive design and bug fixes

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-11-04 10:01:22 +01:00
parent 13618d1fd4
commit f5670253bc
51 changed files with 992 additions and 336 deletions

View File

@@ -35,14 +35,15 @@ export const dashboardRouter = createTRPCRouter({
.input(
z.object({
name: z.string(),
projectId: z.string(),
projectSlug: z.string(),
})
)
.mutation(async ({ input: { projectId, name } }) => {
.mutation(async ({ input: { projectSlug, name } }) => {
const project = await getProjectBySlug(projectSlug);
return db.dashboard.create({
data: {
slug: slug(name),
project_id: projectId,
project_id: project.id,
name,
},
});