Skip to content

Commit

Permalink
Merge pull request #3964 from nickmango/bug/approval-update
Browse files Browse the repository at this point in the history
[#3936,#3920] Bug/Approval List Update
  • Loading branch information
nickmango authored May 29, 2023
2 parents 4472e37 + 81c4549 commit c49e454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cla-backend-go/signatures/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -1785,6 +1785,8 @@ func getLatestSignatures(signatures []*models.Signature) []*models.Signature {
}
}

log.WithFields(f).Debugf("signature Map: %+v", signatureMap)

for _, signature := range signatureMap {
result = append(result, signature)
}
Expand Down Expand Up @@ -1832,8 +1834,6 @@ func (repo repository) GetProjectCompanyEmployeeSignature(ctx context.Context, c

// Check for approved signatures
filter = addAndCondition(filter, expression.Name("signature_reference_id").Equal(expression.Value(employeeUserModel.UserID)), &filterAdded)
filter = addAndCondition(filter, expression.Name("signature_approved").Equal(expression.Value(true)), &filterAdded)
filter = addAndCondition(filter, expression.Name("signature_signed").Equal(expression.Value(true)), &filterAdded)

log.WithFields(f).Debugf("running employee signature query on table: %s", repo.signatureTableName)
expr, err := expression.NewBuilder().WithKeyCondition(condition).WithFilter(filter).WithProjection(buildProjection()).Build()
Expand Down

0 comments on commit c49e454

Please sign in to comment.