diff --git a/hbs2-keyman/hbs2-keyman-direct-lib/HBS2/KeyMan/Keys/Direct.hs b/hbs2-keyman/hbs2-keyman-direct-lib/HBS2/KeyMan/Keys/Direct.hs index afed53ed..15c01d58 100644 --- a/hbs2-keyman/hbs2-keyman-direct-lib/HBS2/KeyMan/Keys/Direct.hs +++ b/hbs2-keyman/hbs2-keyman-direct-lib/HBS2/KeyMan/Keys/Direct.hs @@ -155,7 +155,7 @@ findMatchedGroupKeySecret sto gk = do , t.gkhash , f.key , f.file - , kw.weight + , coalesce(kw.weight, 0) as weight from gkaccess gka join gktrack t on gka.gkhash = t.gkhash join keyfile f on f.key = gka.key