fix: query only one day
This commit is contained in:
parent
618dc8349c
commit
e74b7bab49
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
const foundPacked = [];
|
||||
let untilDate: number | undefined;
|
||||
while (foundPacked.length < ps.limit) {
|
||||
const foundNotes = (await execNotePaginationQuery({...ps, untilDate}, filter)).slice(
|
||||
const foundNotes = (await execNotePaginationQuery({...ps, untilDate}, filter, 1)).slice(
|
||||
0,
|
||||
ps.limit * 1.5,
|
||||
); // Some may filtered out by Notes.packMany, thus we take more than ps.limit.
|
||||
|
|
Loading…
Reference in a new issue