ANocturnalGuy / proxy-api

Use shorthand property syntax for object literals JS-0240
Anti-pattern
Minor
2 occurrences in this check
Expected property shorthand
49
50    const result = await Model.findOneAndUpdate(
51      {
52        id: id,53      },
54      {used: true},
55      options
Expected property shorthand
 30    let txAmount = 0
 31
 32    const exist = await Model.findOne({
 33        hash: hash, 34    });
 35
 36    console.log('log->exist', exist)