feat: update landing page with current screenshots

This commit is contained in:
Vasily Zubarev
2025-07-23 14:29:13 +02:00
parent 9305deda86
commit 070891515b
19 changed files with 145 additions and 61 deletions

View File

@@ -46,6 +46,16 @@ export const updateCategory = async (userId: string, code: string, category: Cat
}
export const deleteCategory = async (userId: string, code: string) => {
await prisma.transaction.updateMany({
where: {
userId,
categoryCode: code,
},
data: {
categoryCode: null,
},
})
return await prisma.category.delete({
where: { userId_code: { userId, code } },
})

View File

@@ -46,6 +46,16 @@ export const updateProject = async (userId: string, code: string, project: Proje
}
export const deleteProject = async (userId: string, code: string) => {
await prisma.transaction.updateMany({
where: {
userId,
projectCode: code,
},
data: {
projectCode: null,
},
})
return await prisma.project.delete({
where: { userId_code: { code, userId } },
})