Skip to content

Commit

Permalink
Fix database manager in webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
smathot committed Jul 26, 2024
1 parent 864d334 commit d286a30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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.24.1'
__version__ = '0.24.2'
2 changes: 1 addition & 1 deletion sigmund/routes/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def webhook():
# for subscription renewals, which are handled below.
if event_type == 'checkout.session.completed':
sigmund_user_id = event_object['client_reference_id']
database = DatabaseManager(sigmund_user_id)
database = DatabaseManager(None, sigmund_user_id)
database.update_subscription(
stripe_customer_id=stripe_customer_id,
stripe_subscription_id=stripe_subscription_id)
Expand Down

0 comments on commit d286a30

Please sign in to comment.