From b0faeab0791a9ea4fbc5b35a671579bd32f29ffe Mon Sep 17 00:00:00 2001 From: bom Date: Tue, 2 Jul 2024 14:37:07 +0200 Subject: [PATCH] Fix logic for generating both config and auth Should trigger if both or neither flag is set --- src/main/cljc/dda/c4k_common/common.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cljc/dda/c4k_common/common.cljc b/src/main/cljc/dda/c4k_common/common.cljc index b0374c6..3caf9c6 100644 --- a/src/main/cljc/dda/c4k_common/common.cljc +++ b/src/main/cljc/dda/c4k_common/common.cljc @@ -59,7 +59,7 @@ only-config only-auth] (let [resulting-config (merge config-defaults my-config) - both (not (or only-config only-auth)) + both (or (and only-config only-auth) (and (not only-config) (not only-auth))) res-vec (cond both (concat-vec (config-objects resulting-config) (auth-objects my-auth)) only-config (config-objects my-config)