modify calculate max display order

This commit is contained in:
MaysWind
2020-11-13 00:28:59 +08:00
parent 54a863e90c
commit 0ab40f6537
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ func (a *AccountsApi) AccountCreateHandler(c *core.Context) (interface{}, *errs.
}
uid := c.GetCurrentUid()
maxOrderId, err := a.accounts.GetMaxDisplayOrder(uid)
maxOrderId, err := a.accounts.GetMaxDisplayOrder(uid, accountCreateReq.Category)
if err != nil {
log.ErrorfWithRequestId(c, "[accounts.AccountCreateHandler] failed to get max display order for user \"uid:%d\", because %s", uid, err.Error())