update interface.ts

This commit is contained in:
undefined committed 2020-07-14 17:17:49 +08:00
1 parent 10956f1fee
commit d4e849a133
8 files changed
+99 -71

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import { FindOneAndUpdateOption } from 'mongodb';
import { Dictionary } from 'lodash';
import * as db from '../service/db';
const coll = db.collection('system');
@@ -9,7 +10,7 @@ export async function get(_id: string) {
return null;
}
export async function getMany(keys: string[]) {
export async function getMany(keys: string[]): Promise<Dictionary<any>> {
const docs = await coll.find({ _id: { $in: keys } }).toArray();
const dict = {};
const res = [];