fix: db.sync
This commit is contained in:
parent
6058850db1
commit
282645ed8b
@ -9,6 +9,18 @@ export default class AddBasicAuthMigration extends Migration {
|
||||
drop: false,
|
||||
},
|
||||
});
|
||||
await this.db.getCollection('tokenBlacklist').sync({
|
||||
force: false,
|
||||
alter: {
|
||||
drop: false,
|
||||
},
|
||||
});
|
||||
await this.db.getCollection('usersAuthenticators').sync({
|
||||
force: false,
|
||||
alter: {
|
||||
drop: false,
|
||||
},
|
||||
});
|
||||
const repo = this.context.db.getRepository('authenticators');
|
||||
const existed = await repo.count();
|
||||
if (existed) {
|
||||
|
Loading…
Reference in New Issue
Block a user