mirror of
https://github.com/langgenius/dify.git
synced 2026-01-08 23:34:11 +00:00
fix: add stable sorting for trigger list to prevent position changes (#25328)
This commit is contained in:
@@ -268,7 +268,7 @@ class AppTriggersApi(Resource):
|
||||
AppTrigger.tenant_id == current_user.current_tenant_id,
|
||||
AppTrigger.app_id == app_model.id,
|
||||
)
|
||||
.order_by(AppTrigger.created_at.desc())
|
||||
.order_by(AppTrigger.created_at.desc(), AppTrigger.id.desc())
|
||||
)
|
||||
.scalars()
|
||||
.all()
|
||||
|
||||
Reference in New Issue
Block a user