Skip to content
Snippets Groups Projects
Commit 5abe034d authored by Cornel Rautenbach's avatar Cornel Rautenbach
Browse files

Remove incorrect logo url bucket function

parent 34b6330a
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,6 @@ import ( ...@@ -5,7 +5,6 @@ import (
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"net/url" "net/url"
"os"
"path" "path"
"strings" "strings"
"time" "time"
...@@ -54,8 +53,6 @@ const ( ...@@ -54,8 +53,6 @@ const (
// TypeXLSX defines the constant for the XLSX MIME type. // TypeXLSX defines the constant for the XLSX MIME type.
MIMETypeXLSX MIMEType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" MIMETypeXLSX MIMEType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
) )
type SessionWithHelpers struct { type SessionWithHelpers struct {
...@@ -247,13 +244,6 @@ func (s SessionWithHelpers) DeleteObjectFromBucket(bucket string, fileName strin ...@@ -247,13 +244,6 @@ func (s SessionWithHelpers) DeleteObjectFromBucket(bucket string, fileName strin
return nil return nil
} }
func GetLogoURLFromFileName(fileName string) string {
logoUrl := "https://%s.s3.%s.amazonaws.com/logos/%s"
logoUrl = fmt.Sprintf(logoUrl, os.Getenv("S3_IMAGES_AND_NOTES_BUCKET"), os.Getenv("AWS_REGION"), fileName)
return logoUrl
}
func GetS3FileKey(fileName string, folder string) string { func GetS3FileKey(fileName string, folder string) string {
// Trim leading and trailing slashes // Trim leading and trailing slashes
fileName = strings.TrimLeft(fileName, "/") fileName = strings.TrimLeft(fileName, "/")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment