Skip to content

Commit

Permalink
Simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Jun 14, 2024
1 parent 787a85b commit 98c7ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/demo/demo_respository.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (r *demoRepository) ExpiredDemos(ctx context.Context, limit uint64) ([]doma
Select("d.demo_id", "d.title", "d.asset_id").
From("demo d").
LeftJoin("report r on d.demo_id = r.demo_id").
Where("coalesce(r.demo_id > 0, false) = false").
Where("r.demo_id > 0").
OrderBy("d.demo_id").
Offset(limit))
if errRow != nil {
Expand Down

0 comments on commit 98c7ad9

Please sign in to comment.