Remove needless async/await
This commit is contained in:
@@ -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 = (
|
||||
|
Reference in New Issue
Block a user