Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Commit 2237213

Browse files
committed
Fix trader existence check
1 parent 5ef8e2d commit 2237213

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/traders/check-trader-exists.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const elasticsearch = require('../util/elasticsearch');
33
const checkTraderExists = async address => {
44
const response = await elasticsearch.getClient().count({
55
index: 'fills',
6-
body: { query: { term: { trader: address } } },
6+
body: { query: { term: { traders: address } } },
77
});
88

99
return response.body.count > 0;

0 commit comments

Comments
 (0)