fix: rename handleGetNetworkType

This commit is contained in:
Derrick Hammer 2023-07-19 11:18:34 -04:00
parent d6c8e85871
commit d9163a4e53
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ const networks: Map<string, Set<string>> = new Map<string, Set<string>>();
addHandler("registerType", handleRegisterType);
addHandler("getTypes", handleGetTypes);
addHandler("getNetworkTypes", handleGetNetworkType);
addHandler("getNetworkTypes", handleGetNetworkTypes);
addHandler("registerNetwork", handleRegisterNetwork);
function handleRegisterType(aq: ActiveQuery) {
@ -40,7 +40,7 @@ function handleRegisterNetwork(aq: ActiveQuery) {
aq.respond();
}
function handleGetNetworkType(aq: ActiveQuery) {
function handleGetNetworkTypes(aq: ActiveQuery) {
if (!("module" in aq.callerInput)) {
aq.reject("module missing");
return;