Skip to content

Commit

Permalink
renamed var
Browse files Browse the repository at this point in the history
  • Loading branch information
g00gol committed Oct 7, 2023
1 parent bb7def0 commit 9b7aae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/controllers/repos-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
)

func GetRepos(w http.ResponseWriter, r *http.Request) {
repos := db.GetRepos()
reposColl := db.GetRepos()
var data bson.M
repos.FindOne(context.TODO(), bson.D{}).Decode(&data)
reposColl.FindOne(context.TODO(), bson.D{}).Decode(&data)

// Return data as JSON
w.Header().Set("Content-Type", "application/json")
Expand Down

0 comments on commit 9b7aae0

Please sign in to comment.