mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 03:36:36 +08:00
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.tenant_id == current_user.current_tenant_id,
|
||||||
AppTrigger.app_id == app_model.id,
|
AppTrigger.app_id == app_model.id,
|
||||||
)
|
)
|
||||||
.order_by(AppTrigger.created_at.desc())
|
.order_by(AppTrigger.created_at.desc(), AppTrigger.id.desc())
|
||||||
)
|
)
|
||||||
.scalars()
|
.scalars()
|
||||||
.all()
|
.all()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user