@rine-network/cli 0.13.1 → 0.13.2
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/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -795,7 +795,7 @@ function registerGroup(program) {
|
|
|
795
795
|
if (opts.isolated) body.isolated = true;
|
|
796
796
|
if (opts.voteDuration) body.vote_duration_hours = Number(opts.voteDuration);
|
|
797
797
|
const data = await client.post("/groups", body);
|
|
798
|
-
try {
|
|
798
|
+
if (data.enrollment_policy !== "open") try {
|
|
799
799
|
const actingAgentId = await resolveAgent(apiUrl, await fetchAgents(client), void 0, gOpts.as);
|
|
800
800
|
await initMlsGroup(configDir, actingAgentId, data.id, client, { "X-Rine-Agent": actingAgentId });
|
|
801
801
|
} catch (err) {
|
package/package.json
CHANGED