Rename backend services for portal
Point domain services, bootstrap, and related packages at Compliance Portal types so callers stop depending on the old Trust Center names. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -53,7 +53,7 @@ func (s *Service) ListDocumentsForOrganizationID(
|
||||
var documents coredata.Documents
|
||||
|
||||
if filter == nil {
|
||||
filter = coredata.NewDocumentTrustCenterFilter()
|
||||
filter = coredata.NewDocumentCompliancePortalFilter()
|
||||
}
|
||||
|
||||
err := s.pg.WithConn(
|
||||
@@ -131,7 +131,7 @@ func (s *Service) GetDocument(
|
||||
return nil, ErrDocumentNotFound
|
||||
}
|
||||
|
||||
if document.TrustCenterVisibility == coredata.TrustCenterVisibilityNone {
|
||||
if document.CompliancePortalVisibility == coredata.CompliancePortalVisibilityNone {
|
||||
return nil, ErrDocumentNotVisible
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ func (s *Service) exportDocumentPDFData(
|
||||
return &ErrDocumentArchived{}
|
||||
}
|
||||
|
||||
if document.TrustCenterVisibility == coredata.TrustCenterVisibilityNone {
|
||||
if document.CompliancePortalVisibility == coredata.CompliancePortalVisibilityNone {
|
||||
return fmt.Errorf("document not visible on compliance page")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user