mirror of
https://github.com/zadam/trilium.git
synced 2024-09-20 23:55:59 +08: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…
Reference in a new issue