Compare commits

...

2 Commits

Author SHA1 Message Date
David Pineau d9bfa50643 Fixup - Remove IRM from package.json 2016-06-20 20:32:49 +02:00
David Pineau 48625c6599 Add context to Transaction's commit call 2016-05-19 15:35:10 +02:00
2 changed files with 6 additions and 6 deletions

View File

@ -126,7 +126,7 @@ class IndexTransaction {
*
* @returns {undefined}
*/
commit(cb) {
commit(context, cb) {
if (this.closed) {
return cb(propError('alreadyCommitted',
'transaction was already committed'));
@ -142,7 +142,7 @@ class IndexTransaction {
// The array-of-operations variant of the `batch` method
// allows passing options such has `sync: true` whereas the
// chained form does not.
return this.db.batch(this.operations, writeOptions, cb);
return this.db.batch(context, this.operations, writeOptions, cb);
}
}

View File

@ -5,7 +5,7 @@
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/scality/IronMan-Arsenal.git"
"url": "git+https://github.com/scality/Arsenal.git"
},
"contributors": [
{ "name": "David Pineau", "email": "" },
@ -14,15 +14,15 @@
],
"license": "ISC",
"bugs": {
"url": "https://github.com/scality/IronMan-Arsenal/issues"
"url": "https://github.com/scality/Arsenal/issues"
},
"homepage": "https://github.com/scality/IronMan-Arsenal#readme",
"homepage": "https://github.com/scality/Arsenal#readme",
"dependencies": {
},
"devDependencies": {
"eslint": "^2.4.0",
"eslint-config-airbnb": "^6.0.0",
"eslint-config-ironman": "scality/IronMan-Guidelines#rel/1.0",
"eslint-config-ironman": "scality/Guidelines#rel/1.1",
"level": "^1.3.0",
"mocha": "^2.3.3",
"temp": "^0.8.3"