Skip to content

Commit

Permalink
chore: limit list of projects to 200
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Apr 22, 2024
1 parent 5a0c9b8 commit 269baf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/sql/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (d *SqlDb) GetAllProjects() (projects []db.Project, err error) {
query, args, err := squirrel.Select("p.*").
From("project as p").
OrderBy("p.name").
Limit(200).
ToSql()

if err != nil {
Expand Down

0 comments on commit 269baf0

Please sign in to comment.