Log sync method in response

This commit is contained in:
James Long 2022-09-14 23:40:13 -04:00
parent 06aa89bb9f
commit 4fd86c9e8f

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()));
});