adding in column and also proper redirecting to activate connect stripe account

This commit is contained in:
Arjun Patel
2019-04-28 18:37:10 -07:00
parent 59d220d5d7
commit 65258f1ecf
2 changed files with 6 additions and 4 deletions
+1 -4
View File
@@ -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);