Skip to content

Commit

Permalink
fix(db): correcting string args (#122)
Browse files Browse the repository at this point in the history
correcting string args
  • Loading branch information
Jacobbrewer1 authored Apr 24, 2024
1 parent d5a5174 commit 7fbcd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dataaccess/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func ConnectDatabase(ctx context.Context, dbType string, v *viper.Viper) (Databa
}

func GenerateConnectionStr(v *viper.Viper, vs vault.Secrets) string {
return fmt.Sprintf("%s:%s@tcp(%s)/%s",
return fmt.Sprintf("%s:%s@tcp(%s)/%s?timeout=90s&multiStatements=true&parseTime=true",
vs["username"],
vs["password"],
v.GetString("db.host"),
Expand Down

0 comments on commit 7fbcd3d

Please sign in to comment.