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 } }
|
{ replacements: { stripe_user_id, org_id } }
|
||||||
);
|
);
|
||||||
|
|
||||||
let redirectUrl =
|
let redirectUrl = process.env.STRIPE_CONNECT_ACTIVATE_REDIRECT_LINK;
|
||||||
process.env.NODE_ENV == 'production'
|
|
||||||
? 'http://thecharify.com/org/main'
|
|
||||||
: 'http://localhost:8081/org/main/';
|
|
||||||
return res.status(302).redirect(redirectUrl);
|
return res.status(302).redirect(redirectUrl);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
next(error);
|
next(error);
|
||||||
|
|||||||
@@ -118,6 +118,11 @@ module.exports = (sequelize, DataTypes) => {
|
|||||||
primary_contact_last_name: {
|
primary_contact_last_name: {
|
||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
allowNull: false
|
allowNull: false
|
||||||
|
},
|
||||||
|
|
||||||
|
charify_credit: {
|
||||||
|
type: DataTypes.INTEGER,
|
||||||
|
defaultValue: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user