20 lines
672 B
TypeScript
20 lines
672 B
TypeScript
import { User, UserInit, UserServices } from '../auth/models/index.ts';
|
|
import { UserSecretInit, UserSecret } from '../auth/models/index.ts';
|
|
import { OrgInit } from '../auth/models/index.ts';
|
|
export { User, UserInit, UserServices, UserSecret };
|
|
import { useContextKey } from '@kevisual/context';
|
|
const init = async () => {
|
|
await OrgInit(null, null).catch((e) => {
|
|
console.error('Org sync', e);
|
|
});
|
|
await UserInit(null, null).catch((e) => {
|
|
console.error('User sync', e);
|
|
});
|
|
await UserSecretInit(null, null).catch((e) => {
|
|
console.error('UserSecret sync', e);
|
|
});
|
|
console.log('Models synced');
|
|
useContextKey('models-synced', true);
|
|
};
|
|
init();
|