Skip to content

Commit

Permalink
fix: (hopefully) incorrect unmarshal of user
Browse files Browse the repository at this point in the history
  • Loading branch information
TheComputerM committed Dec 22, 2024
1 parent f3a3b6f commit 2fdc4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/routes/impartus.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func RegisterImpartusRoutes(router *gin.Engine) {
}

// create user in database
_, err = surrealdb.Create[surrealdb.Result[impartus.User]](impartus.Repository.DB, models.Table("user"), user)
_, err = surrealdb.Create[impartus.User](impartus.Repository.DB, models.Table("user"), user)
if err != nil {
ctx.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{
"message": err.Error(),
Expand Down

0 comments on commit 2fdc4d1

Please sign in to comment.