Skip to content

Commit

Permalink
fix: batch inscription location updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Feb 17, 2024
1 parent 7745e22 commit 47525c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pg/pg-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,8 @@ export class PgStore extends BasePgStore {
SET updated_at = NOW()
WHERE sat_ordinal IN ${sql(transferredOrdinalNumbers)}
`;
await this.updateInscriptionLocationPointers(pointers);
for (const batch of batchIterate(pointers, 8000))
await this.updateInscriptionLocationPointers(batch);
for (const reveal of reveals) {
const action =
'inscription' in reveal
Expand Down

0 comments on commit 47525c9

Please sign in to comment.