Comparing version 0.0.7 to 0.0.8
@@ -91,7 +91,7 @@ var util = require('util'); | ||
exports.ensureIndex = function (index) { | ||
exports.ensureIndex = function (fieldOrSpec, options) { | ||
var self = this; | ||
whenReady(function (db) { | ||
var collection = GC(self); | ||
collection.ensureIndex(index, function (err) { | ||
collection.ensureIndex(fieldOrSpec, options, function (err) { | ||
if (err) throw err; | ||
@@ -98,0 +98,0 @@ }); |
{ | ||
"name": "mong", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Lightweight models for mongodb objects", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
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
9691