This commit is contained in:
seb
2026-10-08 16:11:47 +02:00
parent c2d3cdb088
commit 8111c3f377
10 changed files with 190 additions and 11 deletions

View File

@@ -10,9 +10,9 @@ export async function createUnderParent({ googleAuthId, parentId, name }) {
return store.category.createUnderParent({ googleAuthId, parentId, name });
}
export async function deleteCategory({ googleAuthId, id }) {
export async function deleteCategory({ googleAuthId, id, recursive = false }) {
const store = await getStore();
await store.category.delete({ googleAuthId, id });
await store.category.delete({ googleAuthId, id, recursive });
}
export async function getCategoryArticles(googleAuthId, categoryId) {