Log sync method in response

This commit is contained in:
James Long 2022-09-14 23:40:13 -04:00
parent 9177fb4d77
commit 3c602268e3

View file

@ -129,6 +129,7 @@ app.post('/sync', async (req, res) => {
newMessages.forEach((msg) => responsePb.addMessages(msg));
res.set('Content-Type', 'application/actual-sync');
res.set('X-ACTUAL-SYNC-METHOD', 'simple');
res.send(Buffer.from(responsePb.serializeBinary()));
});