This commit is contained in:
seb
2026-08-01 02:15:29 +02:00
parent 152879bf9f
commit 067503f4ed
9 changed files with 494 additions and 0 deletions

View File

@@ -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
View 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);
}

View File

@@ -12,6 +12,7 @@ const STORE_NAMESPACES = [
'company',
'category',
'article',
'pic',
'lang',
'tax',
'google_auth',