1.0.6 RC6

This commit is contained in:
phidias authored and GitHub committed 2026-10-13 02:17:21 +09:00
1 parent 763dd4628f
commit 410371870f
1 file changed
+3 -2
+3 -2
View File
@@ -251,9 +251,10 @@ export default async function(context: ControllerPluginContext) {
return true;
};
/** Config is keyed by instance name; sendTo wants the controller's numeric ID. */
const findInstanceId = (instanceName: string): number | null => {
for (const [id, instance] of controller.instances) {
if (instance.name === instanceName) return id;
for (const instance of controller.instances.values()) {
if (instance.config.get('instance.name') === instanceName) return instance.id;
}
return null;