Fix incorrect key being checked for override (#3212)

This commit is contained in:
WithoutPants
2022-11-30 09:34:05 +11:00
committed by GitHub
parent 5e332514fa
commit 0b19a00ba8
2 changed files with 2 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ func (r *mutationResolver) ConfigureGeneral(ctx context.Context, input ConfigGen
}
validateDir := func(key string, value string, optional bool) error {
if err := checkConfigOverride(config.Metadata); err != nil {
if err := checkConfigOverride(key); err != nil {
return err
}