Serve brand assets as static files via /api/files/v1/static instead of S3
Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -41,7 +41,6 @@ import (
|
||||
"go.gearno.de/kit/worker"
|
||||
"go.gearno.de/x/ref"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
"go.probo.inc/probo/packages/emails"
|
||||
"go.probo.inc/probo/pkg/accessreview"
|
||||
"go.probo.inc/probo/pkg/agentrun"
|
||||
"go.probo.inc/probo/pkg/awsconfig"
|
||||
@@ -436,14 +435,6 @@ func (impl *Implm) Run(
|
||||
}
|
||||
}
|
||||
|
||||
if err := emails.UploadStaticAssets(
|
||||
ctx,
|
||||
s3Client,
|
||||
impl.cfg.AWS.Bucket,
|
||||
); err != nil {
|
||||
return fmt.Errorf("cannot upload email static assets: %w", err)
|
||||
}
|
||||
|
||||
iamService, err := iam.NewService(
|
||||
ctx,
|
||||
pgClient,
|
||||
|
||||
Reference in New Issue
Block a user