Skip to content

Commit

Permalink
feat(ListSensitiveFloors): set time now if query time not set
Browse files Browse the repository at this point in the history
  • Loading branch information
JingYiJun committed Nov 15, 2023
1 parent 4a5c8d1 commit 0144bbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apis/floor/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,11 @@ func ListSensitiveFloors(c *fiber.Ctx) (err error) {
return err
}

// set default time
if query.Offset.Time.IsZero() {
query.Offset.Time = time.Now()
}

// get user
user, err := GetUser(c)
if err != nil {
Expand Down

0 comments on commit 0144bbd

Please sign in to comment.