mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix 0.46 regression to set up sync from client, fixes #1742
This commit is contained in:
parent
88d04772c4
commit
6c8d20288d
@ -84,7 +84,15 @@ function exec(opts) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
request.end(opts.body);
|
let payload;
|
||||||
|
|
||||||
|
if (opts.body) {
|
||||||
|
payload = typeof opts.body === 'object'
|
||||||
|
? JSON.stringify(opts.body)
|
||||||
|
: opts.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
request.end(payload);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
reject(generateError(opts, e.message));
|
reject(generateError(opts, e.message));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user