Commit 07bd7c06 by 张乐 Committed by GitHub

Merge pull request #379 from nobodyiam/openapi-fix

fix env enum parse
parents 73f99522 6d34ff06
...@@ -100,7 +100,7 @@ public class ItemController { ...@@ -100,7 +100,7 @@ public class ItemController {
throw new BadRequestException("user(operator) not exists"); throw new BadRequestException("user(operator) not exists");
} }
ItemDTO toDeleteItem = itemService.loadItem(Env.valueOf(env), appId, clusterName, namespaceName, key); ItemDTO toDeleteItem = itemService.loadItem(Env.fromString(env), appId, clusterName, namespaceName, key);
if (toDeleteItem == null){ if (toDeleteItem == null){
throw new BadRequestException("item not exists"); throw new BadRequestException("item not exists");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment