fix #11: unable to delete category

This commit is contained in:
Vasily Zubarev
2025-04-07 11:30:30 +02:00
parent f342007676
commit ec72b45ed8
3 changed files with 5 additions and 4 deletions

View File

@@ -171,7 +171,7 @@ export async function editCategoryAction(userId: string, code: string, data: Pri
return { success: true, category }
}
export async function deleteCategoryAction(code: string, userId: string) {
export async function deleteCategoryAction(userId: string, code: string) {
try {
await deleteCategory(userId, code)
} catch (error) {