Skip to content

Commit

Permalink
fix find one in demux
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ribeiro committed Sep 28, 2018
1 parent 41a083d commit 297a494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/demux/src/updaters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
],
Expand Down

0 comments on commit 297a494

Please sign in to comment.