Skip to content

Commit

Permalink
swag
Browse files Browse the repository at this point in the history
  • Loading branch information
aasch2020 committed Mar 12, 2024
1 parent d6db9de commit 92f9b36
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions router.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ func createTask(c *gin.Context) {
return
} //take any JSON sent in the BODY of the request and try to bind it to our Task struct
json.UserID = uid
json.TeamID = crud.NoTeamID

success, taskID, err := crud.CreateTask(json) //pass struct into function to add Task to db
if success {
Expand All @@ -442,7 +441,6 @@ func createTask(c *gin.Context) {

// Edit a task by its ID
func editTask(c *gin.Context) {
fmt.Println("weswaggin")
uid, err := getUserId(c)
if err != nil {
c.String(http.StatusInternalServerError, "Failure to retrieve user id")
Expand Down
Binary file modified slugquest.db
Binary file not shown.

0 comments on commit 92f9b36

Please sign in to comment.