mirror of https://github.com/langgenius/dify.git
fix: add stable sorting for trigger list to prevent position changes (#25328)
This commit is contained in:
parent
e2827e475d
commit
b6c552df07
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue