core: remove unused imports

This commit is contained in:
undefined committed 2022-07-05 21:07:47 +08:00
1 parent 25481ee72b
commit 60ef2a1ad5
1 file changed
-2
-2
View File
@@ -7,7 +7,6 @@ import {
Udict, Udoc, VUdoc,
} from '../interface';
import pwhash from '../lib/hash.hydro';
import { Logger } from '../logger';
import * as bus from '../service/bus';
import db from '../service/db';
import { Value } from '../typeutils';
@@ -22,7 +21,6 @@ export const coll: Collection<Udoc> = db.collection('user');
// Virtual user, only for display in contest.
export const collV: Collection<VUdoc> = db.collection('vuser');
export const collGroup: Collection<GDoc> = db.collection('user.group');
const logger = new Logger('model/user');
const cache = new LRU<string, User>({ max: 500, ttl: 300 * 1000 });
export function deleteUserCache(udoc: User | Udoc | string | undefined | null, receiver = false) {