u
This commit is contained in:
21
src/db/companyuser.js
Normal file
21
src/db/companyuser.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function list(googleAuthId) {
|
||||
const store = await getStore();
|
||||
return store.companyuser.list(googleAuthId);
|
||||
}
|
||||
|
||||
export async function addByEmail(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.companyuser.addByEmail(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function setRole(googleAuthId, id, role) {
|
||||
const store = await getStore();
|
||||
return store.companyuser.setRole(googleAuthId, id, role);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, id) {
|
||||
const store = await getStore();
|
||||
return store.companyuser.remove(googleAuthId, id);
|
||||
}
|
||||
Reference in New Issue
Block a user