mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-14 17:01:20 +08:00
chore: correct typo in the error msg (#4214)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
parent
85f5bb6864
commit
692ccae1fd
@ -70,7 +70,7 @@ function _M.put(id, conf)
|
||||
|
||||
local key = "/global_rules/" .. id
|
||||
|
||||
local ok, err = utils.inject_conf_with_prev_conf("route", key, conf)
|
||||
local ok, err = utils.inject_conf_with_prev_conf("global_rule", key, conf)
|
||||
if not ok then
|
||||
return 500, {error_msg = err}
|
||||
end
|
||||
|
@ -68,7 +68,7 @@ function _M.put(id, conf)
|
||||
|
||||
local key = "/plugin_configs/" .. id
|
||||
|
||||
local ok, err = utils.inject_conf_with_prev_conf("route", key, conf)
|
||||
local ok, err = utils.inject_conf_with_prev_conf("plugin_config", key, conf)
|
||||
if not ok then
|
||||
return 500, {error_msg = err}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user