Skip to content

Commit

Permalink
remove unused env vars + delete fix
Browse files Browse the repository at this point in the history
  • Loading branch information
karngyan committed Dec 23, 2024
1 parent 4fd6a6e commit ce2a06c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions .mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
experimental = true

[env]
ROOT = '{{env.HOME}}/code/karngyan/maek'
CONFIG_FILE = '{{env.HOME}}/code/karngyan/maek/config/config.toml'
RUN_MODE = 'dev'
SERVER_PORT = '8080'

SQL_CONN = 'postgres://maek:passwd@localhost:5432/maek_dev?sslmode=disable'
SQL_CONN_TEST = 'postgres://maek:passwd@localhost:5433/maek_test?sslmode=disable'

# Basically the domains on which the app is hosted separated by semicolons
CORS_ALLOWED_ORIGINS = 'http://localhost:3000'

# CGO_ENABLED is set to 0 to disable cgo
CGO_ENABLED = '0'

[tools]
Expand Down
2 changes: 1 addition & 1 deletion domains/auth/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func DeleteSession(ctx context.Context, token string) error {
err := sessionCache.Delete(ctx, token)
err := sessionCache.Delete(token)
if err != nil {
return err
}
Expand Down

0 comments on commit ce2a06c

Please sign in to comment.