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);
|
||||
|
||||
Reference in New Issue
Block a user