process-custodian
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -131,3 +131,3 @@ 'use strict'; | ||
result = _context3.sent; | ||
return _context3.abrupt('return', result.upsertedCount || result.modifiedCount); | ||
return _context3.abrupt('return', result.modifiedCount); | ||
@@ -169,3 +169,6 @@ case 9: | ||
}, { | ||
$setOnInsert: { _id: _constants.MASTER_KEY } | ||
$setOnInsert: { | ||
_id: _constants.MASTER_KEY, | ||
lastActivity: new Date() | ||
} | ||
}, { | ||
@@ -194,3 +197,3 @@ upsert: true | ||
_id: _constants.MASTER_KEY, | ||
lastActivity: { $lte: deathDate } | ||
lastActivity: { $lt: deathDate } | ||
}, { | ||
@@ -205,3 +208,3 @@ $set: { | ||
result = _context4.sent; | ||
return _context4.abrupt('return', result.upsertedCount || result.modifiedCount); | ||
return _context4.abrupt('return', result.modifiedCount); | ||
@@ -208,0 +211,0 @@ case 14: |
{ | ||
"name": "process-custodian", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "This package helps with organizing of tasks between few instances of same app, It can identify processes and track them activity.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -106,3 +106,3 @@ import {MASTER_KEY, EVENTS} from './constants'; | ||
}); | ||
return result.upsertedCount || result.modifiedCount; | ||
return result.modifiedCount; | ||
} catch (err) { | ||
@@ -121,3 +121,6 @@ console.error('ActivityQueue[renewingMasterReservation]:', err); | ||
}, { | ||
$setOnInsert: {_id: MASTER_KEY} | ||
$setOnInsert: { | ||
_id: MASTER_KEY, | ||
lastActivity: new Date() | ||
} | ||
}, { | ||
@@ -135,3 +138,3 @@ upsert: true | ||
_id: MASTER_KEY, | ||
lastActivity: {$lte: deathDate} | ||
lastActivity: {$lt: deathDate} | ||
}, { | ||
@@ -143,3 +146,3 @@ $set: { | ||
}); | ||
return result.upsertedCount || result.modifiedCount; | ||
return result.modifiedCount; | ||
} catch (err) { | ||
@@ -146,0 +149,0 @@ console.error('ActivityQueue[tryBeMaster]:', err); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28886
593
0