u
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user