Files
dashback/src/db/printer.js
2026-09-26 23:06:09 +02:00

32 lines
881 B
JavaScript

import { getStore } from './store.js';
export async function list(googleAuthId) {
const store = await getStore();
return store.printer.list(googleAuthId);
}
export async function getById(googleAuthId, id) {
const store = await getStore();
return store.printer.getById(googleAuthId, id);
}
export async function create(googleAuthId, data) {
const store = await getStore();
return store.printer.create(googleAuthId, data);
}
export async function update(googleAuthId, id, data) {
const store = await getStore();
return store.printer.update(googleAuthId, id, data);
}
export async function order(googleAuthId, data) {
const store = await getStore();
return store.printer.order(googleAuthId, data);
}
export async function remove(googleAuthId, id) {
const store = await getStore();
return store.printer.delete(googleAuthId, id);
}