Skip to content

Commit

Permalink
Refactored dashboard code #1676
Browse files Browse the repository at this point in the history
  • Loading branch information
verheyenkoen committed Sep 25, 2024
1 parent 6cfd6e4 commit 7132452
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions handlers/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,16 @@ func ActionRequired(w http.ResponseWriter, r *http.Request) {
func CandidateRecords(w http.ResponseWriter, r *http.Request) {
c := ctx.Get(r)

searchArgs := models.NewSearchArgs().
WithFilter("Status", "new").
WithFilter("PersonID", c.User.ID)
searchArgs.PageSize = 4

var total int
var recs []*models.CandidateRecord
var err error

if c.FlagCandidateRecords() {
searchArgs := models.NewSearchArgs().
WithPageSize(4).
WithFilter("Status", "new").
WithFilter("PersonID", c.User.ID)

total, recs, err = c.Repo.GetCandidateRecords(r.Context(), searchArgs)
}

Expand Down

0 comments on commit 7132452

Please sign in to comment.