devCompanion: add findComponentByCode (#2026)

This commit is contained in:
AutumnVN 2023-12-07 04:27:06 +07:00 committed by GitHub
parent 3453d0c97c
commit c0b6d8f1c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,6 +215,9 @@ function initWs(isManual = false) {
case "ModuleId":
results = Object.keys(search(parsedArgs[0]));
break;
case "ComponentByCode":
results = findAll(filters.componentByCode(...parsedArgs));
break;
default:
return reply("Unknown Find Type " + type);
}