[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
This commit is contained in:
Mark Hahnenberg 2016-12-14 16:43:47 -08:00
parent cfc8d3e315
commit a45bd4515a

View file

@ -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,