Ben Gotow
3e8623d383
Move charset definition to single location
2016-07-12 18:03:08 -07:00
Ben Gotow
a62e858389
Make charset explicit on connection and models
2016-07-12 17:41:16 -07:00
Ben Gotow
4fb848e91f
fix for re-authing the same account
2016-07-11 21:38:05 -07:00
Ben Gotow
492ac21bb6
Primitive account deletion via DELETE /account
2016-07-11 16:56:18 -07:00
Ben Gotow
63f66fb7e7
Switch to PM2 for dev + prod
2016-07-07 15:25:45 -07:00
Ben Gotow
822b8e54e6
Allow usage with mysql in addition to SQLite
2016-07-07 11:37:55 -07:00
Juan Tejada
8b1f012a3c
Fix error serialization
...
- Remove cumbersome NylasError
- Add helper to serialize error when saving to account
2016-07-01 15:49:47 -07:00
Ben Gotow
9ff7d3aea5
Add folders and labels to /threads response, version numbers to all models
2016-06-29 11:22:38 -07:00
Ben Gotow
6ecacdd591
Add account_id to all responses, downcase model ref columns
2016-06-29 10:36:35 -07:00
Juan Tejada
ed749e0f51
Add sync worker error handling
...
- Handles sync errors in a single place. For now, if error is not a
socket error, will treat as a permanent error, save the error to the
account object, and prevent any other syncing until the error is cleared
from the account object
- Adds a NylasError class that can be extended and serialized. Adds it
to global namespace on all packages and replaces all uses of regular
Error
2016-06-27 16:03:38 -07:00
Juan Tejada
1fe7fdf4b1
More sync error handling WIP
2016-06-27 10:27:38 -07:00
Ben Gotow
f678045c4f
sync db <=> redis with sequelize hooks
2016-06-23 16:28:51 -07:00
Ben Gotow
f7c647f7ba
Return syncs to unclaimed queue after CLAIM_DURATION, just because it's healthy
2016-06-23 11:45:33 -07:00
Ben Gotow
12d9db8dd9
Redis coordination of sync processes / assignment
2016-06-23 00:49:26 -07:00