Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'server/recent/local_recent_db_manager.js')
-rw-r--r--server/recent/local_recent_db_manager.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/recent/local_recent_db_manager.js b/server/recent/local_recent_db_manager.js
index 5205b89..8e88891 100644
--- a/server/recent/local_recent_db_manager.js
+++ b/server/recent/local_recent_db_manager.js
@@ -32,7 +32,7 @@ LocalRecentDBManager.prototype.actionArray = function (items, callback) {
};
fullDB["data"].push(item);
}
- require("mkdirp")(getParentFolderFromPath(db.path), function () {
+ require("mkdirp")(getParentFolderFromPath(db.path)).then(made => {
// opts is optional, and defaults to {}
console.logDebug("writing")
@@ -74,7 +74,7 @@ LocalRecentDBManager.prototype.action = function (path, action, time, callback)
fullDB["data"].push(item);
console.logDebug(JSON.stringify(item))
- require("mkdirp")(getParentFolderFromPath(db.path), function () {
+ require("mkdirp")(getParentFolderFromPath(db.path)).then(made => {
// opts is optional, and defaults to {}
console.logDebug("writing")
@@ -134,7 +134,7 @@ LocalRecentDBManager.prototype.mergeDB = function (path, callback) {
}
dataJson["data"] = dataJson["data"].sort(keysrt('time'))
if (hasChanged) {
- require("mkdirp")(getParentFolderFromPath(db.path), function () {
+ require("mkdirp")(getParentFolderFromPath(db.path)).then(made => {
// opts is optional, and defaults to {}
lockFile.lock('recent.lock', {
wait: 10000