remove sync

This commit is contained in:
2025-12-28 16:16:23 +08:00
parent 9f51d27398
commit df6db9d88b
10 changed files with 42 additions and 53 deletions

View File

@@ -4,22 +4,13 @@ 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,
logging: false,
}).catch((e) => {
await OrgInit(null, null).catch((e) => {
console.error('Org sync', e);
});
await UserInit(null, null, {
alter: true,
logging: false,
}).catch((e) => {
await UserInit(null, null).catch((e) => {
console.error('User sync', e);
});
await UserSecretInit(null, null, {
alter: true,
logging: false,
}).catch((e) => {
await UserSecretInit(null, null).catch((e) => {
console.error('UserSecret sync', e);
});
console.log('Models synced');