u
This commit is contained in:
16
src/db/article.js
Normal file
16
src/db/article.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function createUnderParent({ googleAuthId, parentId, name }) {
|
||||
const store = await getStore();
|
||||
return store.article.createUnderParent({ googleAuthId, parentId, name });
|
||||
}
|
||||
|
||||
export async function getBySku(googleAuthId, sku) {
|
||||
const store = await getStore();
|
||||
return store.article.getBySku(googleAuthId, sku);
|
||||
}
|
||||
|
||||
export async function updateBySku(googleAuthId, sku, data) {
|
||||
const store = await getStore();
|
||||
return store.article.updateBySku(googleAuthId, sku, data);
|
||||
}
|
||||
Reference in New Issue
Block a user