|
|
|
@ -91,8 +91,6 @@ Persistence.prototype.persistCachedDatabase = function (cb) { |
|
|
|
|
toPersist += model.serialize(doc) + '\n'; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if (toPersist.length === 0) { return callback(null); } |
|
|
|
|
|
|
|
|
|
fs.writeFile(this.filename, toPersist, function (err) { return callback(err); }); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|