Skip to content
Snippets Groups Projects
Commit 3b474c91 authored by Ben Adida's avatar Ben Adida
Browse files

Merge branch 'dev' into feature_dsa

parents 55e16d90 40315e68
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,10 @@ function flush() {
function sync() {
try {
db = JSON.parse(fs.readFileSync(dbPath));
// FIXME:
// at this point db might be missing some important fields
// we may want to fix this. In the meantime, delete your old json db
} catch(e) {
logger.error("Cannot read database from " + dbPath);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment