INNER CODE UNIT · JavaScript
rollbackFileSave
e-oj/Fawn · lib/roller.js:188
function rollbackFileSave(db, step, task) {
var gfs = new Grid(db);
return dbUtils.removeFile(step.dataStore[0]._id, gfs)
.then(function () {
return updateState(task, step.index, ROLLED);
});
}
/**
* Rollback for file remove step.
*
* @param db native db
* @param step the file remove step
* @param task the task containing the step.
*
* @returns {Promise|*}
*/