u
This commit is contained in:
@@ -19,3 +19,13 @@ export async function addImage(googleAuthId, sku, imageBuffer) {
|
||||
const store = await getStore();
|
||||
return store.article.addImage(googleAuthId, sku, imageBuffer);
|
||||
}
|
||||
|
||||
export async function deleteImage(googleAuthId, sku, fullHash) {
|
||||
const store = await getStore();
|
||||
return store.article.deleteImage(googleAuthId, sku, fullHash);
|
||||
}
|
||||
|
||||
export async function orderImages(googleAuthId, sku, data) {
|
||||
const store = await getStore();
|
||||
return store.article.orderImages(googleAuthId, sku, data);
|
||||
}
|
||||
|
||||
11
src/db/pic.js
Normal file
11
src/db/pic.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function getImageByHash(googleAuthId, fullHash) {
|
||||
const store = await getStore();
|
||||
return store.pic.getImageByHash(googleAuthId, fullHash);
|
||||
}
|
||||
|
||||
export async function getThumbByHash(googleAuthId, fullHash) {
|
||||
const store = await getStore();
|
||||
return store.pic.getThumbByHash(googleAuthId, fullHash);
|
||||
}
|
||||
@@ -12,6 +12,7 @@ const STORE_NAMESPACES = [
|
||||
'company',
|
||||
'category',
|
||||
'article',
|
||||
'pic',
|
||||
'lang',
|
||||
'tax',
|
||||
'google_auth',
|
||||
|
||||
Reference in New Issue
Block a user