Permalink
Browse files

more API upgrades

  • Loading branch information...
1 parent 2d91625 commit 67a8584bf0c5d8969251645dc736daacbf0b4945 @janl committed Mar 2, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 store.js
View
@@ -155,10 +155,10 @@ exports.rename = function(src, dst, do_not_overwrite) {
};
exports.save = function() {
- var file = require("file");
+ var fs = require("fs");
var filename = "dump.jrdb";
var data = JSON.stringify(store);
- file.write(filename, data).wait();
+ fs.writeFileSync(filename, data);
};
exports.select = function(index) {

0 comments on commit 67a8584

Please sign in to comment.