get singular flag

This commit is contained in:
Erik 2023-07-13 03:22:42 +03:00
parent d20b5d65d8
commit 782ee6e781
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68

View File

@ -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[]
{