Browse Source

#2624

add resource specification
tags/v1.22.8.2^2
chenyifan01 3 years ago
parent
commit
b695183e5f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/admin/resources.go

+ 1
- 1
routers/admin/resources.go View File

@@ -73,7 +73,7 @@ func AddResourceQueue(ctx *context.Context, req models.ResourceQueueReq) {
func UpdateResourceQueue(ctx *context.Context, req models.ResourceQueueReq) {
queueId := ctx.ParamsInt64(":id")
//only CardsTotalNum permitted to change
err := resource.UpdateResourceQueue(queueId, req.CardsTotalNum)
err := resource.UpdateResourceQueue(queueId, req)
if err != nil {
log.Error("UpdateResourceQueue error. %v", err)
ctx.JSON(http.StatusOK, response.ServerError(err.Error()))


Loading…
Cancel
Save