@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user