From f064fb24429854a2b1cb6d19050ae44f2cffb306 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 8 Jan 2023 10:08:13 -0500 Subject: only return most recent 50 items for outbox --- controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controller') diff --git a/controller/controller.go b/controller/controller.go index 91ac267..7b063e6 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -154,7 +154,7 @@ func (r *Controller) OutboxCollection(name string) (map[string]interface{}, erro return nil, nil } aso := models.NewOutboxItem(handler.handlerCfg) - page, err := r.persister.Collect(aso) + page, err := r.persister.CollectRecent(aso, 50) if err != nil { return nil, err } -- cgit v1.2.3