From a45bd4515a0e195c50dded6e6a7eaadedf037398 Mon Sep 17 00:00:00 2001 From: Mark Hahnenberg Date: Wed, 14 Dec 2016 16:43:47 -0800 Subject: [PATCH] [local-sync] Fix Contact.toJSON Summary: We forgot to refactor `publicId` to just `id`, which was breaking contact deltas in N1. Test Plan: Run locally Reviewers: khamidou, evan, juan Reviewed By: juan Differential Revision: https://phab.nylas.com/D3508 --- packages/local-sync/src/models/contact.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/local-sync/src/models/contact.js b/packages/local-sync/src/models/contact.js index 46c0014be..503988b58 100644 --- a/packages/local-sync/src/models/contact.js +++ b/packages/local-sync/src/models/contact.js @@ -22,7 +22,7 @@ module.exports = (sequelize, Sequelize) => { instanceMethods: { toJSON() { return { - id: `${this.publicId}`, + id: `${this.id}`, account_id: this.accountId, object: 'contact', email: this.email,