Remove needless async/await

This commit is contained in:
syuilo
2018-10-31 11:22:49 +09:00
parent 26c9d8ff6f
commit 29b000e03c
6 changed files with 12 additions and 12 deletions

View File

@@ -17,11 +17,11 @@ export interface IMute {
muteeId: mongo.ObjectID;
}
export const packMany = async (
export const packMany = (
mutes: (string | mongo.ObjectID | IMute)[],
me?: string | mongo.ObjectID | IUser
) => {
return (await Promise.all(mutes.map(x => pack(x, me))));
return Promise.all(mutes.map(x => pack(x, me)));
};
export const pack = (