adding in column and also proper redirecting to activate connect stripe account
This commit is contained in:
@@ -147,10 +147,7 @@ exports.activateStripeAccount = async (req, res, next) => {
|
||||
{ replacements: { stripe_user_id, org_id } }
|
||||
);
|
||||
|
||||
let redirectUrl =
|
||||
process.env.NODE_ENV == 'production'
|
||||
? 'http://thecharify.com/org/main'
|
||||
: 'http://localhost:8081/org/main/';
|
||||
let redirectUrl = process.env.STRIPE_CONNECT_ACTIVATE_REDIRECT_LINK;
|
||||
return res.status(302).redirect(redirectUrl);
|
||||
} catch (error) {
|
||||
next(error);
|
||||
|
||||
@@ -118,6 +118,11 @@ module.exports = (sequelize, DataTypes) => {
|
||||
primary_contact_last_name: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false
|
||||
},
|
||||
|
||||
charify_credit: {
|
||||
type: DataTypes.INTEGER,
|
||||
defaultValue: 0
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user