Remove needless async/await
This commit is contained in:
parent
26c9d8ff6f
commit
29b000e03c
6 changed files with 12 additions and 12 deletions
|
|
@ -17,11 +17,11 @@ export type IBlocking = {
|
|||
blockerId: mongo.ObjectID;
|
||||
};
|
||||
|
||||
export const packMany = async (
|
||||
export const packMany = (
|
||||
blockings: (string | mongo.ObjectID | IBlocking)[],
|
||||
me?: string | mongo.ObjectID | IUser
|
||||
) => {
|
||||
return (await Promise.all(blockings.map(x => pack(x, me))));
|
||||
return Promise.all(blockings.map(x => pack(x, me)));
|
||||
};
|
||||
|
||||
export const pack = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue