Skip to content

Commit

Permalink
Merge pull request #17 from maxfelker/accounts-hot-fix
Browse files Browse the repository at this point in the history
Fixing null response from /accounts
  • Loading branch information
maxfelker authored Aug 28, 2024
2 parents c905095 + 4d9852e commit 3669f03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Persistence cloud API to store locations of objects in Unity 3D space.
First, create a `.env` file in the root of the directory with the following values:

```bash
ALLOWED_ORIGINS=http://localhost:5173,https://localhost:5173,http://localhost,https://localhost
ALLOWED_ORIGINS=http://localhost:5173,https://localhost:5173,http://localhost:5174,https://localhost:5174,http://localhost,https://localhost

POSTGRES_HOST=postgres
POSTGRES_USER=tmdbuser
Expand Down
2 changes: 1 addition & 1 deletion pkg/accounts/handlers/GetAccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func GetAccounts(app *core.App) http.HandlerFunc {
return
}

var baseAccounts []models.BaseAccount
baseAccounts := []models.BaseAccount{}
for _, account := range accounts {
baseAccounts = append(baseAccounts, models.BaseAccount{
ID: account.ID,
Expand Down

0 comments on commit 3669f03

Please sign in to comment.