diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-08 15:08:13 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-08 15:08:13 +0000 |
commit | f064fb24429854a2b1cb6d19050ae44f2cffb306 (patch) | |
tree | 9b654316030b4857f4422d17c475faf9fbbafb9f /controller | |
parent | 2ac280ccd497f36caee2038fa1a2bcf29f9f9931 (diff) | |
download | communique-f064fb24429854a2b1cb6d19050ae44f2cffb306.tar.gz |
only return most recent 50 items for outbox
Diffstat (limited to 'controller')
-rw-r--r-- | controller/controller.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |