fix: await pack

This commit is contained in:
Namekuji 2023-09-18 22:23:54 -04:00
parent 97d128aa5c
commit 0f387858d8
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -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(