Remove needless async/await
This commit is contained in:
parent
26c9d8ff6f
commit
29b000e03c
6 changed files with 12 additions and 12 deletions
|
|
@ -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)));
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue