twenty
twenty copied to clipboard
Add lastSyncHistoryId to messageChannel model
Scope & Context
To sync messages with the gmail API, we need to use the method users.history.list which takes the historyId as an argument.
Technical inputs
Add lastSyncHistoryId to messageChannel model. This will allow us to store the historyId of the last sync to do a partial sync.