fixed leaking entities into the responses and thus increased performance of e.g. create/duplicate note

This commit is contained in:
zadam
2021-10-06 20:52:23 +02:00
parent df8706026e
commit 711af02928
3 changed files with 49 additions and 13 deletions

View File

@@ -156,6 +156,10 @@ if (utils.isElectron()) {
}
if (arg.statusCode >= 200 && arg.statusCode < 300) {
if (arg.headers['Content-Type'] === 'application/json') {
arg.body = JSON.parse(arg.body);
}
reqResolves[arg.requestId]({
body: arg.body,
headers: arg.headers