aboutsummaryrefslogtreecommitdiff
path: root/controller/controller.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-08 15:08:13 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-08 15:08:13 +0000
commitf064fb24429854a2b1cb6d19050ae44f2cffb306 (patch)
tree9b654316030b4857f4422d17c475faf9fbbafb9f /controller/controller.go
parent2ac280ccd497f36caee2038fa1a2bcf29f9f9931 (diff)
downloadcommunique-f064fb24429854a2b1cb6d19050ae44f2cffb306.tar.gz
only return most recent 50 items for outbox
Diffstat (limited to '')
-rw-r--r--controller/controller.go2
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
}