Skip to content

Commit

Permalink
Check error and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren committed Nov 28, 2023
1 parent 03364f0 commit 4d9633e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/google/uuid"
)

const wrapperr_version_parameter = "v3.2.1"
const wrapperr_version_parameter = "v3.2.2"
const minSecretKeySize = 32

var config_path, _ = filepath.Abs("./config/config.json")
Expand Down
2 changes: 1 addition & 1 deletion routes/both.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func ApiWrapperGetStatistics(context *gin.Context) {
context.JSON(http.StatusInternalServerError, gin.H{"error": "User validation error."})
context.Abort()
return
} else if userName == "" || userEmail == "" {
} else if userName == "" || userId == 0 {
log.Println("At this point the user should have been verified, but username or ID is empty.")
context.JSON(http.StatusInternalServerError, gin.H{"error": "User validation error."})
context.Abort()
Expand Down

0 comments on commit 4d9633e

Please sign in to comment.