fix: await pack
This commit is contained in:
parent
97d128aa5c
commit
0f387858d8
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
.execute(prepared.note.select.byIds, [noteIds], { prepare: true })
|
||||
.then((result) => result.rows.map(parseScyllaNote));
|
||||
|
||||
return Notes.packMany((await filter(foundNotes)).slice(0, ps.limit), user);
|
||||
return (await Notes.packMany((await filter(foundNotes)), user)).slice(0, ps.limit);
|
||||
}
|
||||
|
||||
const query = makePaginationQuery(
|
||||
|
|
Loading…
Reference in a new issue