Commit 6d34ff06 by Jason Song

fix env enum parse

parent 73f99522
......@@ -100,7 +100,7 @@ public class ItemController {
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){
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