fix: fix mark bugs
This commit is contained in:
@@ -301,10 +301,8 @@ export const MarkMInit = async <T = any>(opts: MarkInitOpts<T>, sync?: Opts) =>
|
||||
paranoid: true,
|
||||
...optsRest,
|
||||
});
|
||||
console.log('MarkModel init', optsRest);
|
||||
if (sync && sync.sync) {
|
||||
const { sync: _, ...rest } = sync;
|
||||
console.log('MarkModel sync', rest);
|
||||
MarkModel.sync({ alter: true, logging: false, ...rest }).catch((e) => {
|
||||
console.error('MarkModel sync', e);
|
||||
});
|
||||
@@ -318,4 +316,4 @@ export const syncMarkModel = async (sync?: Opts) => {
|
||||
await MarkMInit({ sequelize, tableName: 'micro_mark' }, sync);
|
||||
};
|
||||
|
||||
syncMarkModel({ sync: true, alter: true, logging: true });
|
||||
syncMarkModel({ sync: true, alter: true, logging: false });
|
||||
Reference in New Issue
Block a user