place the account at the end of the account category after changing account category

This commit is contained in:
MaysWind
2026-01-17 23:32:13 +08:00
parent 8db69f64c8
commit 46ff0ecd3b
2 changed files with 22 additions and 11 deletions
+1 -1
View File
@@ -445,7 +445,7 @@ func (s *AccountService) ModifyAccounts(c core.Context, mainAccount *models.Acco
// update accounts
for i := 0; i < len(updateAccounts); i++ {
account := updateAccounts[i]
updatedRows, err := sess.ID(account.AccountId).Cols("name", "category", "icon", "color", "comment", "extend", "hidden", "updated_unix_time").Where("uid=? AND deleted=?", account.Uid, false).Update(account)
updatedRows, err := sess.ID(account.AccountId).Cols("name", "display_order", "category", "icon", "color", "comment", "extend", "hidden", "updated_unix_time").Where("uid=? AND deleted=?", account.Uid, false).Update(account)
if err != nil {
return err