A local-first personal finance app
Fix lint
James Long9177fb4d77ac
diff --git a/app-sync.js b/app-sync.jsindex 7e2e012881..c07ff9173b 100644--- a/app-sync.js+++ b/app-sync.js@@ -126,7 +126,7 @@ app.post('/sync', async (req, res) => {// encode it back...let responsePb = new SyncPb.SyncResponse();responsePb.setMerkle(JSON.stringify(trie));- newMessages.forEach(msg => responsePb.addMessages(msg));+ newMessages.forEach((msg) => responsePb.addMessages(msg));res.set('Content-Type', 'application/actual-sync');res.send(Buffer.from(responsePb.serializeBinary()));@@ -368,7 +368,7 @@ app.get('/list-user-files', (req, res) => {res.send(JSON.stringify({status: 'ok',- data: rows.map(row => ({+ data: rows.map((row) => ({deleted: row.deleted,fileId: row.id,groupId: row.group_id,diff --git a/sync-simple.js b/sync-simple.jsindex e76e32826a..a88f188c18 100644--- a/sync-simple.js+++ b/sync-simple.js@@ -57,7 +57,7 @@ function addMessages(db, messages) {return returnValue;}-function getMerkle(db, group_id) {+function getMerkle(db) {let rows = db.all('SELECT * FROM messages_merkles');if (rows.length > 0) {@@ -84,7 +84,7 @@ function sync(messages, since, groupId) {return {trie,- newMessages: newMessages.map(msg => {+ newMessages: newMessages.map((msg) => {const envelopePb = new SyncPb.MessageEnvelope();envelopePb.setTimestamp(msg.timestamp);envelopePb.setIsencrypted(msg.is_encrypted);