Skip to content

Commit

Permalink
replace event ids query clause
Browse files Browse the repository at this point in the history
  • Loading branch information
45930 committed Nov 20, 2024
1 parent 9ce44f0 commit 86d9590
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/db/sql/events-actions/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function emittedEventsCTE(db_client: postgres.Sql) {
*,
zke.id AS zkapp_event_id,
zkf.id AS zkapp_event_element_id,
zkfa.element_ids AS zkapp_event_element_ids,
zke.element_ids AS zkapp_event_element_ids,
zkfa.id AS zkapp_event_array_id
FROM
emitted_zkapp_commands
Expand Down
2 changes: 0 additions & 2 deletions tests/resolvers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ describe('Query Resolvers', async () => {
document: parse(`${eventsQuery}`),
});
const events = results.data.events;
console.log(events);
const lastEvent = events[events.length - 1];
console.log(lastEvent);
assert.strictEqual(lastEvent.eventData.length, 3);
});
});
Expand Down

0 comments on commit 86d9590

Please sign in to comment.