Skip to content

Commit

Permalink
Use a much higher limit for now
Browse files Browse the repository at this point in the history
Signed-off-by: Jo Vandeginste <[email protected]>
  • Loading branch information
jovandeginste committed Feb 28, 2024
1 parent 06c4826 commit 080a119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (a *App) BackgroundWorker() {

var wID []int

q := a.db.Model(&database.Workout{}).Where(&database.Workout{Dirty: true}).Limit(10).Pluck("ID", &wID)
q := a.db.Model(&database.Workout{}).Where(&database.Workout{Dirty: true}).Limit(1000).Pluck("ID", &wID)
if err := q.Error; err != nil {
l.Error("Worker error: " + err.Error())
}
Expand Down

0 comments on commit 080a119

Please sign in to comment.