fix(account): Include name

This commit is contained in:
Ben Gotow 2016-11-23 15:24:41 -08:00
parent e7386ff4ae
commit cfb1356be6

View file

@ -28,6 +28,7 @@ module.exports = (sequelize, Sequelize) => {
toJSON() {
return {
id: this.id,
name: this.name,
object: 'account',
organization_unit: (this.provider === 'gmail') ? 'label' : 'folder',
provider: this.provider,