Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-06-15 15:33:14 +02:00
parent eed6bf579d
commit 35910d1e6e
5 changed files with 8 additions and 0 deletions

View File

@@ -590,6 +590,7 @@ func (s *Service) CountFetchAttemptsForCampaignSourceID(
var attempts coredata.AccessReviewCampaignSourceFetchAttempts
var err error
count, err = attempts.CountByCampaignSourceID(ctx, conn, scope, campaignSourceID)
if err != nil {
return fmt.Errorf("cannot count fetch attempts: %w", err)

View File

@@ -133,6 +133,7 @@ func (s *Service) RecordDecisions(
decidedByID, ok := decidedByCache[entry.OrganizationID]
if !ok {
decidedByID = nil
if d.DecidedByID != nil {
profile := &coredata.MembershipProfile{}
if err := profile.LoadByIdentityIDAndOrganizationID(ctx, conn, scope, *d.DecidedByID, entry.OrganizationID); err == nil {