mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
update interface.ts
This commit is contained in:
1 parent
10956f1fee
commit
d4e849a133
8 files changed
+99
-71
No files matched your search
@@ -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 = [];
|
||||
|
||||
Reference in new issue
Block a user