diff options
| -rw-r--r-- | backend/handlers/logs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/handlers/logs.go b/backend/handlers/logs.go index 2b5713d..3eadbb0 100644 --- a/backend/handlers/logs.go +++ b/backend/handlers/logs.go | |||
| @@ -106,7 +106,7 @@ func ScoreLogs(c *gin.Context) { | |||
| 106 | 106 | ||
| 107 | func CreateLog(user_id string, log_type string, log_description string) (err error) { | 107 | func CreateLog(user_id string, log_type string, log_description string) (err error) { |
| 108 | sql := `INSERT INTO logs (user_id, "type", description) VALUES($1, $2, $3)` | 108 | sql := `INSERT INTO logs (user_id, "type", description) VALUES($1, $2, $3)` |
| 109 | _, err = database.DB.Exec(sql) | 109 | _, err = database.DB.Exec(sql, user_id, log_type, log_description) |
| 110 | if err != nil { | 110 | if err != nil { |
| 111 | return err | 111 | return err |
| 112 | } | 112 | } |