feat(backend): subtask category support (schema, validation, sync, routes)

This commit is contained in:
2026-08-10 11:41:25 +02:00
parent 4c3d1a118c
commit f3bcd78e49
15 changed files with 451 additions and 4 deletions
+2
View File
@@ -135,6 +135,7 @@ router.post('/', asyncHandler(async (req: Request, res: Response) => {
id: taskId,
userId,
categoryId: data.categoryId,
tags: data.tags ?? '',
title: data.title,
description: data.description ?? '',
priority: data.priority ?? 'none',
@@ -159,6 +160,7 @@ router.post('/', asyncHandler(async (req: Request, res: Response) => {
userId,
taskId,
title: st.title,
categoryId: (st as any).categoryId ?? null,
completed: false,
order: index,
createdAt: now,