mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
getPubkeysBySearch: reduce limit of second query if applicable
This commit is contained in:
parent
379953a8cb
commit
5969d9b3fa
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ export async function getPubkeysBySearch(
|
|||
return pubkeys;
|
||||
}
|
||||
|
||||
for (const { pubkey } of await query.execute()) {
|
||||
for (const { pubkey } of await query.limit(limit - pubkeys.size).execute()) {
|
||||
pubkeys.add(pubkey);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue