u
This commit is contained in:
16
src/db/categoryproperty.js
Normal file
16
src/db/categoryproperty.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function listByCategoryId(googleAuthId, categoryId) {
|
||||
const store = await getStore();
|
||||
return store.categoryproperty.listByCategoryId(googleAuthId, categoryId);
|
||||
}
|
||||
|
||||
export async function setByCategoryId(googleAuthId, categoryId, properties) {
|
||||
const store = await getStore();
|
||||
return store.categoryproperty.setByCategoryId(googleAuthId, categoryId, properties);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, categoryId, propertyId) {
|
||||
const store = await getStore();
|
||||
return store.categoryproperty.delete(googleAuthId, categoryId, propertyId);
|
||||
}
|
||||
Reference in New Issue
Block a user