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
path: root/server
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-05-29 16:19:14 +0300
committerPhie <phie@phie.ovh>2019-05-29 16:19:14 +0300
commit9a197fda1537f4d357cb72ecf4c00af048c3b01f (patch)
treeb90a8cc00b99b0d6d7aa070daa2f283778336ddb /server
parent11fc0371dc4df78b0261b13e172793cdc97afa37 (diff)
adapting to new api
Diffstat (limited to 'server')
-rw-r--r--server/server.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/server.js b/server/server.js
index fe946a9..4138421 100644
--- a/server/server.js
+++ b/server/server.js
@@ -83,7 +83,9 @@ var handle = function (method, path, data, callback) {
})
return;
case "/notes/getSearchCache":
- callback(false, currentSearch.result)
+ var toConvert = {}
+ toConvert.files = currentSearch.result
+ callback(false, toConvert)
return;
case "/settings/isfirstrun":
callback(false, settingsHelper.isFirstRun())
@@ -223,7 +225,9 @@ var handle = function (method, path, data, callback) {
}
)
}, function (result) {
- callback(false, JSON.stringify(arrayResult))
+ var toConvert = {}
+ toConvert.files = arrayResult
+ callback(false, JSON.stringify(toConvert))
})
arrayH.next()