u
This commit is contained in:
@@ -5,6 +5,11 @@ export async function listCompanies(authId) {
|
||||
return store.company.list(authId);
|
||||
}
|
||||
|
||||
export async function getCompanyById(id) {
|
||||
const store = await getStore();
|
||||
return store.company.getById(id);
|
||||
}
|
||||
|
||||
export async function createCompany(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.company.create({ ...data, googleAuthId });
|
||||
|
||||
@@ -34,3 +34,13 @@ export async function setOffAll(googleAuthId, posterminalId) {
|
||||
const store = await getStore();
|
||||
return store.posterminal.setOffAll(googleAuthId, posterminalId);
|
||||
}
|
||||
|
||||
export async function findByPairingpin(pairingpin) {
|
||||
const store = await getStore();
|
||||
return store.posterminal.findByPairingpin(pairingpin);
|
||||
}
|
||||
|
||||
export async function pair(id, data) {
|
||||
const store = await getStore();
|
||||
return store.posterminal.pair(id, data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user