Comparing version 0.0.4 to 0.0.5
@@ -30,2 +30,6 @@ 'use strict'; | ||
self.events.ensureIndex({ | ||
fieldName: 'recorded_at', | ||
sparse: true | ||
}); | ||
self.events.ensureIndex({ | ||
fieldName: 'created_at', | ||
@@ -158,2 +162,4 @@ }, next); | ||
event.monologued = false; | ||
event.recorded_at = new Date(); | ||
self.events.insert(event, function (err) { | ||
@@ -187,3 +193,6 @@ if (!err) { | ||
self.events.find({ | ||
monologued: false | ||
monologued: false, | ||
recorded_at: { | ||
$lte: new Date(Date.now() - 15000) | ||
} | ||
}).sort({ | ||
@@ -190,0 +199,0 @@ created_at: 1 |
{ | ||
"name": "box-sdk", | ||
"description": "Node.js client for Box Content API", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"homepage": "https://github.com/adityamukho/node-box-sdk", | ||
@@ -6,0 +6,0 @@ "author": { |
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
732838
16755