core: update hook usage

This commit is contained in:
undefined committed 2022-09-23 20:10:36 +08:00
1 parent ab933bc9d5
commit 757b5e6bc1
27 files changed
+63 -64

No files matched your search

+2 -2
View File
@@ -102,7 +102,7 @@ export class User {
}
async init() {
await bus.serial('user/get', this);
await bus.parallel('user/get', this);
return this;
}
@@ -403,7 +403,7 @@ class UserModel {
}
}
bus.once('app/started', () => Promise.all([
bus.on('app/started', () => Promise.all([
db.ensureIndexes(
coll,
{ key: { unameLower: 1 }, name: 'uname', unique: true },