Fix false warning message

This commit is contained in:
Zaid Abdulla committed 2021-11-15 15:42:33 -08:00
1 parent aa12b7c724
commit 3c55306e22
1 file changed
+4 -1
+4 -1
View File
@@ -2678,7 +2678,10 @@ export async function rpcResponse(
const wildcardParams: Path[] = [root.concat(wildcardPath)];
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({
sessionContext: sessionContext,
message: "Unexpected parameter in response",