17 lines
617 B
JavaScript
17 lines
617 B
JavaScript
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);
|
|
}
|