Skip to content

Commit

Permalink
remove default
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Jan 2, 2024
1 parent 70a8313 commit 810e346
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/worker/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
// name: active
// description: Filter workers based on active status
// type: boolean
// default: true
// - in: query
// name: checked_in_before
// description: filter workers that have checked in before a certain time
Expand Down Expand Up @@ -65,7 +64,7 @@ func ListWorkers(c *gin.Context) {
"user": u.GetName(),
}).Info("reading workers")

active := c.DefaultQuery("active", "true")
active := c.Query("active")

// capture before query parameter if present, default to now
before, err := strconv.ParseInt(c.DefaultQuery("checked_in_before", strconv.FormatInt(time.Now().UTC().Unix(), 10)), 10, 64)
Expand Down

0 comments on commit 810e346

Please sign in to comment.