diff --git a/src/server/components/FlagManager.ts b/src/server/components/FlagManager.ts index 265594b..ea2507b 100644 --- a/src/server/components/FlagManager.ts +++ b/src/server/components/FlagManager.ts @@ -76,6 +76,12 @@ class FlagManager flag.value = data.value; } + getFlag (query: FlagQuery) + { + const [ flag ] = this.getFlags(query); + return flag; + } + getFlags ({ id, name, env, consumer, hierarchy, strict = false }: FlagQuery): Flag[] {