[PR #30121] fix: trigger subscription delete not working for non-auto-created credentials #32695

Closed
opened 2026-02-21 20:51:54 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30121

State: closed
Merged: No


Summary

  • Fix trigger subscription delete not working for non-auto-created credentials
  • The delete_subscription method was returning early when credential_type was not OAUTH2 or API_KEY
  • Now the subscription is always deleted from database regardless of credential type

Changes

  • Moved the early return logic to only skip the unsubscribe_trigger call for non-auto-created credentials
  • Ensured session.delete(subscription) is always executed

Closes #30120

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/langgenius/dify/pull/30121 **State:** closed **Merged:** No --- ## Summary - Fix trigger subscription delete not working for non-auto-created credentials - The `delete_subscription` method was returning early when credential_type was not OAUTH2 or API_KEY - Now the subscription is always deleted from database regardless of credential type ## Changes - Moved the early return logic to only skip the `unsubscribe_trigger` call for non-auto-created credentials - Ensured `session.delete(subscription)` is always executed Closes #30120 🤖 Generated with [Claude Code](https://claude.com/claude-code)
yindo added the pull-request label 2026-02-21 20:51:54 -05:00
yindo closed this issue 2026-02-21 20:51:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32695