This commit is contained in:
2025-12-04 14:22:04 +08:00
parent 2a55f2d3ef
commit 9e458f4a77
17 changed files with 449 additions and 143 deletions

View File

@@ -2,6 +2,7 @@ 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, {
alter: true,
@@ -21,5 +22,7 @@ const init = async () => {
}).catch((e) => {
console.error('UserSecret sync', e);
});
console.log('Models synced');
useContextKey('models-synced', true);
};
init();