Skip to content

Commit

Permalink
Fix customer portal redirect
Browse files Browse the repository at this point in the history
- Bump to 0.16.6
  • Loading branch information
smathot committed May 1, 2024
1 parent 1b9cce1 commit 58eb745
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sigmund/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""AI-based chatbot that provides sensible answers based on documentation"""

__version__ = '0.16.5'
__version__ = '0.16.6'
4 changes: 2 additions & 2 deletions sigmund/routes/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def subscribe():
sigmund = get_sigmund()
if sigmund.database.check_subscription():
logger.info(f'redirecting {sigmund.user_id} to customer portal')
redirect(url_for('subscribe.customer-portal'), code=303)
redirect(url_for('subscribe.customer_portal'), code=303)
return utils.render('subscribe-now.html', username=sigmund.user_id)


Expand Down Expand Up @@ -175,4 +175,4 @@ def webhook():
f'(stripe_customer_id: {stripe_customer_id}, '
f'stripe_subscription_id: {stripe_subscription_id})')
logger.info('webhook successful')
return jsonify(success=True), 200
return jsonify(success=True), 200

0 comments on commit 58eb745

Please sign in to comment.