fix: add stable sorting for trigger list to prevent position changes (#25328)

This commit is contained in:
lyzno1 2025-09-07 21:52:41 +08:00 committed by GitHub
parent e2827e475d
commit b6c552df07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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()