Răsfoiți Sursa

Update pagination limit (#3063)

Worlds shortest PR
Stefan McShane 3 ani în urmă
părinte
comite
d16ce6a836
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      api/server/handlers/stacks/list_porter_app_events.go

+ 1 - 1
api/server/handlers/stacks/list_porter_app_events.go

@@ -53,7 +53,7 @@ func (p *PorterAppEventListHandler) ServeHTTP(w http.ResponseWriter, r *http.Req
 		return
 		return
 	}
 	}
 
 
-	porterApps, paginatedResult, err := p.Repo().PorterAppEvent().ListEventsByPorterAppID(app.ID, helpers.WithPageSize(2), helpers.WithPage(int(pr.Page)))
+	porterApps, paginatedResult, err := p.Repo().PorterAppEvent().ListEventsByPorterAppID(app.ID, helpers.WithPageSize(20), helpers.WithPage(int(pr.Page)))
 	if err != nil {
 	if err != nil {
 		if !errors.Is(err, gorm.ErrRecordNotFound) {
 		if !errors.Is(err, gorm.ErrRecordNotFound) {
 			p.HandleAPIError(w, r, apierrors.NewErrPassThroughToClient(reqErr, http.StatusBadRequest))
 			p.HandleAPIError(w, r, apierrors.NewErrPassThroughToClient(reqErr, http.StatusBadRequest))