u
This commit is contained in:
32
src/db/agentprinter.js
Normal file
32
src/db/agentprinter.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function list(googleAuthId, printeragentId) {
|
||||
const store = await getStore();
|
||||
return store.agentprinter.list(googleAuthId, printeragentId);
|
||||
}
|
||||
|
||||
export async function getById(googleAuthId, id) {
|
||||
const store = await getStore();
|
||||
return store.agentprinter.getById(googleAuthId, id);
|
||||
}
|
||||
|
||||
export async function findOrCreate(printeragentId, data) {
|
||||
const store = await getStore();
|
||||
return store.agentprinter.findOrCreate(printeragentId, data);
|
||||
}
|
||||
|
||||
export async function update(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.agentprinter.update(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function order(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.agentprinter.order(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, id) {
|
||||
const store = await getStore();
|
||||
return store.agentprinter.delete(googleAuthId, id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user