Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

agenda

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agenda - npm Package Compare versions

Comparing version 0.6.3 to 0.6.4

5

History.md
0.6.4 / 2014-04-09
==================
* fix $setOnInsert with empty obj cause mongodb 2.6 complain [@inetfuture]
0.6.3 / 2014-04-07

@@ -3,0 +8,0 @@ ==================

11

lib/agenda.js

@@ -157,3 +157,4 @@ var Job = require('./job.js'),

var now = new Date(),
protect = {};
protect = {},
update;
if(props.nextRunAt && props.nextRunAt <= now) {

@@ -163,3 +164,9 @@ protect.nextRunAt = props.nextRunAt;

}
this._db.findAndModify({name: props.name, type: 'single'}, {}, { $set: props, $setOnInsert: protect }, {upsert: true, new: true}, processDbResult);
update = { $set: props };
if (Object.keys(protect).length > 0) {
update.$setOnInsert = protect;
}
this._db.findAndModify({name: props.name, type: 'single'}, {}, update, {upsert: true, new: true}, processDbResult);
} else {

@@ -166,0 +173,0 @@ if(job.attrs._id) {

2

package.json
{
"name": "agenda",
"version": "0.6.3",
"version": "0.6.4",
"description": "Light weight job scheduler for Node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc