Fix lint issues from previous commit
Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -43,6 +43,7 @@ func (s *Service) GenerateFileURL(ctx context.Context, fileID gid.GID) (string,
|
|||||||
if err := file.LoadPublicByID(ctx, conn, fileID); err != nil {
|
if err := file.LoadPublicByID(ctx, conn, fileID); err != nil {
|
||||||
return fmt.Errorf("cannot load public file: %w", err)
|
return fmt.Errorf("cannot load public file: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ func (s *Service) GeneratePresignedFileURL(
|
|||||||
if err := file.LoadPublicByID(ctx, conn, fileID); err != nil {
|
if err := file.LoadPublicByID(ctx, conn, fileID); err != nil {
|
||||||
return fmt.Errorf("cannot load public file: %w", err)
|
return fmt.Errorf("cannot load public file: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -505,7 +505,7 @@ func (impl *Implm) Run(
|
|||||||
|
|
||||||
cookieBannerService := cookiebanner.NewService(pgClient, impl.cfg.Branding)
|
cookieBannerService := cookiebanner.NewService(pgClient, impl.cfg.Branding)
|
||||||
|
|
||||||
fileService := file.NewService(pgClient, baseURL)
|
fileService := file.NewService(pgClient, baseURL)
|
||||||
filesignService := filesign.NewService(pgClient, fileManagerService)
|
filesignService := filesign.NewService(pgClient, fileManagerService)
|
||||||
|
|
||||||
proboService, err := probo.NewService(
|
proboService, err := probo.NewService(
|
||||||
@@ -568,7 +568,7 @@ func (impl *Implm) Run(
|
|||||||
AllowedOrigins: impl.cfg.Api.Cors.AllowedOrigins,
|
AllowedOrigins: impl.cfg.Api.Cors.AllowedOrigins,
|
||||||
ExtraHeaderFields: impl.cfg.Api.ExtraHeaderFields,
|
ExtraHeaderFields: impl.cfg.Api.ExtraHeaderFields,
|
||||||
Probo: proboService,
|
Probo: proboService,
|
||||||
FileSign: filesignService,
|
FileSign: filesignService,
|
||||||
IAM: iamService,
|
IAM: iamService,
|
||||||
Trust: trustService,
|
Trust: trustService,
|
||||||
ESign: esignService,
|
ESign: esignService,
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ func NewServer(cfg Config) (*Server, error) {
|
|||||||
BaseURL: cfg.BaseURL,
|
BaseURL: cfg.BaseURL,
|
||||||
AllowedOrigins: cfg.AllowedOrigins,
|
AllowedOrigins: cfg.AllowedOrigins,
|
||||||
Probo: cfg.Probo,
|
Probo: cfg.Probo,
|
||||||
FileSign: cfg.FileSign,
|
FileSign: cfg.FileSign,
|
||||||
IAM: cfg.IAM,
|
IAM: cfg.IAM,
|
||||||
Trust: cfg.Trust,
|
Trust: cfg.Trust,
|
||||||
ESign: cfg.ESign,
|
ESign: cfg.ESign,
|
||||||
|
|||||||
Reference in New Issue
Block a user