Fix false warning message
This commit is contained in:
1 parent
aa12b7c724
commit
3c55306e22
1 file changed
+4
-1
+4
-1
@@ -2678,7 +2678,10 @@ export async function rpcResponse(
|
|||||||
const wildcardParams: Path[] = [root.concat(wildcardPath)];
|
const wildcardParams: Path[] = [root.concat(wildcardPath)];
|
||||||
|
|
||||||
for (const [path, object, writable] of rpcRes.parameterList) {
|
for (const [path, object, writable] of rpcRes.parameterList) {
|
||||||
if (!path.toString().startsWith(rpcReq.parameterPath)) {
|
if (
|
||||||
|
!path.toString().startsWith(rpcReq.parameterPath) &&
|
||||||
|
!(`${path.toString()}.` === rpcReq.parameterPath && !rpcReq.nextLevel)
|
||||||
|
) {
|
||||||
logger.accessWarn({
|
logger.accessWarn({
|
||||||
sessionContext: sessionContext,
|
sessionContext: sessionContext,
|
||||||
message: "Unexpected parameter in response",
|
message: "Unexpected parameter in response",
|
||||||
|
|||||||
Reference in new issue
Block a user