Skip to content

Commit d3cb95f

Browse files
committed
fix: array filter moved to mongo query
1 parent 023b3a7 commit d3cb95f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nightfall-client/src/services/state-sync.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const genGetCommitments = async (query = {}, proj = {}) => {
7878

7979
// eslint-disable-next-line import/prefer-default-export
8080
export const initialClientSync = async () => {
81-
const allCommitments = await genGetCommitments({blockNumber: {$gte: 0}});
81+
const allCommitments = await genGetCommitments({ blockNumber: { $gte: 0 } });
8282
const commitmentBlockNumbers = allCommitments.map(a => a.blockNumber);
8383
logger.info({ msg: 'commitmentBlockNumbers', commitmentBlockNumbers });
8484

0 commit comments

Comments
 (0)