Skip to content

Commit

Permalink
Only show latest 10 incoming records
Browse files Browse the repository at this point in the history
  • Loading branch information
bittersweet committed Oct 11, 2015
1 parent 4fead1a commit 2245bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func handleIndex(w http.ResponseWriter, r *http.Request) {
}

incoming := []Incoming{}
err = db.Select(&incoming, "SELECT * FROM incoming ORDER BY id desc")
err = db.Select(&incoming, "SELECT * FROM incoming ORDER BY id DESC LIMIT 10")
if err != nil {
log.Fatal("db.Select incoming ", err)
}
Expand Down

0 comments on commit 2245bc7

Please sign in to comment.