fix: inconsistent input use on handleGetNetworksByType
This commit is contained in:
parent
32638417df
commit
c5dd605571
|
@ -63,7 +63,7 @@ function handleGetNetworksByType(aq: ActiveQuery) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!types.has(aq.callerInput)) {
|
if (!types.has(aq.callerInput.type)) {
|
||||||
aq.reject("type not registered");
|
aq.reject("type not registered");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ function handleGetNetworksByType(aq: ActiveQuery) {
|
||||||
aq.respond(
|
aq.respond(
|
||||||
[...networks.entries()]
|
[...networks.entries()]
|
||||||
.filter((item) => {
|
.filter((item) => {
|
||||||
return item[1].has(aq.callerInput);
|
return item[1].has(aq.callerInput.type);
|
||||||
})
|
})
|
||||||
.map((item) => item[0]),
|
.map((item) => item[0]),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue