mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-05 12:29:54 -06:00
script execution results are also pojo-ized
This commit is contained in:
@@ -79,6 +79,10 @@ function convertEntitiesToPojo(result) {
|
||||
}
|
||||
}
|
||||
|
||||
if (result && result.executionResult) { // from runOnBackend()
|
||||
result.executionResult = convertEntitiesToPojo(result.executionResult);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ function error(message) {
|
||||
log("ERROR: " + message);
|
||||
}
|
||||
|
||||
const requestBlacklist = [ "/libraries", "/app", "/images", "/stylesheets" ];
|
||||
const requestBlacklist = [ "/libraries", "/app", "/images", "/stylesheets", "/api/recent-notes" ];
|
||||
|
||||
function request(req, res, timeMs, responseLength = "?") {
|
||||
for (const bl of requestBlacklist) {
|
||||
|
||||
Reference in New Issue
Block a user