From 064b8df2a0be142e2e3a67fc8275042152e42fdc Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Thu, 14 Mar 2019 02:48:31 -0700 Subject: [PATCH] small change in convention --- app/controllers/organization/organization.controller.js | 8 ++++---- models/organization.model.js | 4 ++-- seeders/20190122053544-base-orgs.js | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/controllers/organization/organization.controller.js b/app/controllers/organization/organization.controller.js index 4537edc..184e990 100644 --- a/app/controllers/organization/organization.controller.js +++ b/app/controllers/organization/organization.controller.js @@ -26,15 +26,15 @@ exports.create = async (req, res, next) => { estimate_asset_value, estimate_yearly_operating_cost, - isNonprofit, + is_nonprofit, primary_contact_phone, primary_contact_first_name, primary_contact_last_name } = req.body; - primary_cause = primary_cause.trim().toLowerCase(); - primary_region = primary_region.trim().toLowerCase(); + // primary_cause = primary_cause.trim().toLowerCase(); + // primary_region = primary_region.trim().toLowerCase(); let transaction; @@ -93,7 +93,7 @@ exports.create = async (req, res, next) => { estimate_asset_value, estimate_yearly_operating_cost, - isNonprofit, + is_nonprofit, primary_contact_phone, primary_contact_first_name, diff --git a/models/organization.model.js b/models/organization.model.js index 447db1d..155b5dc 100644 --- a/models/organization.model.js +++ b/models/organization.model.js @@ -79,12 +79,12 @@ module.exports = (sequelize, DataTypes) => { defaultValue: 0 }, - isNonprofit: { + is_nonprofit: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: false }, - isVerified: { + is_verified: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: false diff --git a/seeders/20190122053544-base-orgs.js b/seeders/20190122053544-base-orgs.js index 185d54a..65802e5 100644 --- a/seeders/20190122053544-base-orgs.js +++ b/seeders/20190122053544-base-orgs.js @@ -27,7 +27,7 @@ module.exports = { estimate_asset_value: 200000, estimate_yearly_operating_cost: 40000, - isNonprofit: true, + is_nonprofit: true, primary_contact_phone: '9493873423', primary_contact_first_name: 'Kamlesh', @@ -51,8 +51,8 @@ module.exports = { // state: 'CA', // zip: '92604', - // primary_cause: 'Animal', - // primary_region: 'South Asia', + // primary_cause: 'Human Services', + // primary_region: 'Africa', // ein: '63-6088665', // estimate_asset_value: 200000,