diff options
author | Phie <phie@phie.ovh> | 2019-05-29 16:19:14 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-05-29 16:19:14 +0300 |
commit | 9a197fda1537f4d357cb72ecf4c00af048c3b01f (patch) | |
tree | b90a8cc00b99b0d6d7aa070daa2f283778336ddb /server | |
parent | 11fc0371dc4df78b0261b13e172793cdc97afa37 (diff) |
adapting to new api
Diffstat (limited to 'server')
-rw-r--r-- | server/server.js | 8 |
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() |