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

@ -164,7 +164,7 @@ export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => {
}
};
export const packMany = async (
export const packMany = (
notes: (string | mongo.ObjectID | INote)[],
me?: string | mongo.ObjectID | IUser,
options?: {
@ -172,7 +172,7 @@ export const packMany = async (
skipHide?: boolean;
}
) => {
return (await Promise.all(notes.map(n => pack(n, me, options))));
return Promise.all(notes.map(n => pack(n, me, options)));
};
/**