From 8653e9bcc15459d1b8f5bf5ed2c95251ec8bccf8 Mon Sep 17 00:00:00 2001 From: camlyall Date: Fri, 28 Jul 2023 08:31:37 +0000 Subject: [PATCH] adjust query for empty descision token --- internal/collection/goa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/collection/goa.go b/internal/collection/goa.go index c543a151..07eb435d 100644 --- a/internal/collection/goa.go +++ b/internal/collection/goa.go @@ -394,7 +394,7 @@ func (w *goaWrapper) Decide(ctx context.Context, payload *goacollection.DecidePa return err } - if c.DecisionToken == nil || c.Status != StatusPending { + if len(c.DecisionToken) == 0 || c.Status != StatusPending { return goacollection.MakeNotValid(errors.New("collection is not awaiting decision")) }