Use compliance page logos for favicon and org sidebar

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-30 10:28:55 +04:00
parent 96391b4822
commit aa8bc15233
8 changed files with 76 additions and 6 deletions

View File

@@ -882,7 +882,7 @@ func (r *trustCenterResolver) LogoFileURL(ctx context.Context, obj *types.TrustC
func (r *trustCenterResolver) DarkLogoFileURL(ctx context.Context, obj *types.TrustCenter) (*string, error) {
trustService := r.TrustService(ctx, obj.ID.TenantID())
return trustService.TrustCenters.GenerateLogoURL(ctx, obj.ID, 1*time.Hour)
return trustService.TrustCenters.GenerateDarkLogoURL(ctx, obj.ID, 1*time.Hour)
}
// NdaFileURL is the resolver for the ndaFileUrl field.

View File

@@ -201,7 +201,7 @@ func (s TrustCenterService) GenerateDarkLogoURL(
return nil, err
}
if compliancePage.LogoFileID == nil {
if compliancePage.DarkLogoFileID == nil {
return nil, nil
}