dify/api/controllers/service_api
Harry 80f2c1be67 fix(trigger): enhance error handling and refactor end user creation in trigger workflows
- Improved error handling in `TriggerSubscriptionListApi` to return a 404 response for ValueErrors.
- Refactored end user creation logic in `service_api/wraps.py` to use `get_or_create_end_user` for better clarity and consistency.
- Introduced a new method `create_end_user_batch` for batch creation of end users, optimizing database interactions.
- Updated various trigger-related services to utilize the new end user handling, ensuring proper user context during trigger dispatching.
2025-10-17 21:00:57 +08:00
..
app use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
dataset use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
workspace add typing to all wraps (#25405) 2025-09-09 16:48:33 +08:00
__init__.py example for __all__ (#25666) 2025-09-14 18:40:06 +08:00
index.py feat: API docs for service api (#24425) 2025-08-25 09:26:54 +08:00
wraps.py fix(trigger): enhance error handling and refactor end user creation in trigger workflows 2025-10-17 21:00:57 +08:00