channel-worker 1.6.14 → 1.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/nst-manager.js +7 -0
- package/package.json +1 -1
package/lib/nst-manager.js
CHANGED
|
@@ -124,6 +124,13 @@ class NstManager {
|
|
|
124
124
|
let profileId = profileIdOrName;
|
|
125
125
|
if (!this.isUUID(profileIdOrName)) {
|
|
126
126
|
profileId = await this.ensureProfile(profileIdOrName);
|
|
127
|
+
if (!profileId || !this.isUUID(profileId)) {
|
|
128
|
+
// Fallback: try findProfile directly
|
|
129
|
+
const found = await this.findProfile(profileIdOrName);
|
|
130
|
+
if (found && this.isUUID(found)) profileId = found;
|
|
131
|
+
else throw new Error(`Cannot resolve profile UUID for "${profileIdOrName}" (got: ${profileId})`);
|
|
132
|
+
}
|
|
133
|
+
console.log(`[nst] Resolved "${profileIdOrName}" → ${profileId}`);
|
|
127
134
|
}
|
|
128
135
|
|
|
129
136
|
// If already running, stop first then relaunch
|