11 lines
625 B
Diff
11 lines
625 B
Diff
--- packages/business/src/instance-settings.mjs
|
|
+++ packages/business/src/instance-settings.mjs
|
|
@@ -369,6 +369,7 @@
|
|
if ((old.retired ?? []).includes(name)) throw new OrganizationError("organization-instance-retired");
|
|
if ((old.launch.keep ?? []).includes(name)) throw new OrganizationError("instance-kept");
|
|
const next = structuredClone(old);
|
|
+ definitionFor(rolesDir, definition);
|
|
if (Object.hasOwn(old.roles, name)) {
|
|
const fired = !old.launch.instances.includes(name) && old.launch.by !== name;
|
|
if (!fired || old.roles[name].definition !== definition || Object.hasOwn(args, "vars")) {
|