diff --git a/services/demux/src/updaters.ts b/services/demux/src/updaters.ts index b5671f9..3cc9fc3 100644 --- a/services/demux/src/updaters.ts +++ b/services/demux/src/updaters.ts @@ -183,7 +183,7 @@ const quickbattle = async (db: any, payload: any, blockInfo: BlockInfo) => { } const getLastBattle = async (db: any) => { - return await db.battles.findOne(null, { + return await db.battles.findOne({}, { order: [ { field: "id", direction: "desc" }, ],