Skip to content

Commit ec15df9

Browse files
committed
fix: events subscription
1 parent 8c68575 commit ec15df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indexer/src/kadena-server/repository/infra/repository/event-db-repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export default class EventDbRepository implements EventRepository {
404404
}
405405

406406
async getLastEventId(): Promise<number> {
407-
const query = `SELECT last_value AS lastValue from "Events_id_seq"`;
407+
const query = `SELECT last_value AS "lastValue" from "Events_id_seq"`;
408408
const { rows } = await rootPgPool.query(query);
409409
const totalCount = parseInt(rows[0].lastValue, 10);
410410
return totalCount;

0 commit comments

Comments
 (0)