Skip to content

Commit

Permalink
fix: handler error
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhnajafiz committed Dec 8, 2022
1 parent 0365da2 commit 7eac921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/internal/port/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (h *Handler) UserGithubRepos(ctx *fiber.Ctx) error {

// creating mongo filter
filter := bson.D{
{"user", user},
{"name", user},
{"created", bson.D{{"$gte", time.Now().Add(-2 * time.Minute)}}},
}

Expand Down

0 comments on commit 7eac921

Please sign in to comment.