Files
dashback/src/db/labeltemplate.js
2026-09-27 22:01:47 +02:00

27 lines
770 B
JavaScript

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