Log sync method in response
This commit is contained in:
parent
9177fb4d77
commit
3c602268e3
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ app.post('/sync', async (req, res) => {
|
||||||
newMessages.forEach((msg) => responsePb.addMessages(msg));
|
newMessages.forEach((msg) => responsePb.addMessages(msg));
|
||||||
|
|
||||||
res.set('Content-Type', 'application/actual-sync');
|
res.set('Content-Type', 'application/actual-sync');
|
||||||
|
res.set('X-ACTUAL-SYNC-METHOD', 'simple');
|
||||||
res.send(Buffer.from(responsePb.serializeBinary()));
|
res.send(Buffer.from(responsePb.serializeBinary()));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue