mongo-milestone
Version:
*A life-saving little tool to work around the lack of ACID Transactions in MongoDB*
19 lines (16 loc) • 411 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _mongodb = require('mongodb');
class Attempt {
constructor(parameters, _id) {
this._id = _id || new _mongodb.ObjectId();
this.success = null;
this.beginDate = new Date();
this.endDate = null;
this.input = parameters;
this.output = null;
}
}
exports.default = Attempt;