Skip to content

Commit dbe3f7b

Browse files
committed
fix(package.json): update packages importing elliptic to bump elliptic
version, add useFindAndModify spec to findOneAndUpdate query
1 parent 7d98115 commit dbe3f7b

File tree

4 files changed

+6074
-89
lines changed

4 files changed

+6074
-89
lines changed

app/krs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const provisionMasterKey = co(function *(coin, customerId) {
6161
const keyType = process.config.supportedcoins[coin];
6262

6363
const key = yield MasterKey.findOneAndUpdate({ coin: null, customerId: null, type: keyType },
64-
{ coin: coin, customerId: customerId, type: keyType });
64+
{ coin: coin, customerId: customerId, type: keyType }, { useFindAndModify: false });
6565

6666
if (!key) {
6767
throw utils.ErrorResponse(500, `no available ${keyType} keys`);

0 commit comments

Comments
 (0)