From 3838bc6a704de5181e366b405391e62002279cd3 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Mon, 28 Oct 2024 19:48:43 +0100 Subject: [PATCH] Remove "instance" from ConfigLocation When the config system was ported to TypeScript the "instance" location was accidentally added to the type of available locations for access control. This has never been a valid location as it was deemed too complicated to work with. The correct location for instances is "controller" and "host" as these are the locations the configs are handled. --- packages/lib/src/config/classes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/src/config/classes.ts b/packages/lib/src/config/classes.ts index f6ec27a5..673329e4 100644 --- a/packages/lib/src/config/classes.ts +++ b/packages/lib/src/config/classes.ts @@ -7,7 +7,7 @@ import { basicType } from "../helpers"; import * as libSchema from "../schema"; import { StringEnum } from "../data/composites"; -const ConfigLocation = StringEnum(["controller", "host", "instance", "control"]); +const ConfigLocation = StringEnum(["controller", "host", "control"]); export type ConfigLocation = Static; /**