mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-12 02:58:20 +08:00
[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:
parent
cfc8d3e315
commit
a45bd4515a
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue