Skip to content

Commit

Permalink
Reverting back to vault controlled
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Nov 19, 2024
1 parent 2999b03 commit efeccbb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions link/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"os"
"strings"

"github.com/joho/godotenv"
)
Expand Down Expand Up @@ -49,6 +50,9 @@ func New() (*Link, error) {
if len(link) == 0 {
return nil, fmt.Errorf("LINK_JSON environment variable cannot be found")
}

link = strings.ReplaceAll(link, "'", "\"")

var data *Link
err = json.Unmarshal([]byte(link), &data)
if err != nil {
Expand Down
3 changes: 3 additions & 0 deletions team/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"os"
"strings"

"github.com/joho/godotenv"
)
Expand All @@ -26,6 +27,8 @@ func New() (*[]Member, error) {
return nil, fmt.Errorf("TEAM_JSON environment variable cannot be found")
}

team = strings.ReplaceAll(team, "'", "\"")

var data *[]Member
err = json.Unmarshal([]byte(team), &data)
if err != nil {
Expand Down

0 comments on commit efeccbb

Please sign in to comment.