core: 添加app/load钩子

This commit is contained in:
undefined committed 2020-09-16 23:12:16 +08:00
1 parent ce0357d9bd
commit e5ed861f1b
10 files changed
+44 -19

No files matched your search

+3 -1
View File
@@ -1,4 +1,6 @@
/* eslint-disable no-await-in-loop */
import { Udoc } from '../interface';
import { Value } from '../typeutils';
import * as user from '../model/user';
import * as document from '../model/document';
import * as setting from '../model/setting';
@@ -12,7 +14,7 @@ const collDocument = db.collection('document');
const collDomainUser = db.collection('domain.user');
const collRecord = db.collection('record');
const $unset = {
const $unset: Value<Partial<Udoc>> = {
regip: '', regat: '', loginat: '', loginip: '',
};
for (const s of setting.PREFERENCE_SETTINGS) {