Skip to content

Commit 8e5fe96

Browse files
authored
reduced the number of action history pulled from the action history table (#545)
1 parent c12eede commit 8e5fe96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/src/controllers/getFeeds.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/controllers/getFeeds.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function getFeeds(req: Req, res: Response) {
1515
// limit set to 90 because request size was getting to large
1616
const actions = (await models.ActionHistory.findAll({
1717
where: { tenant },
18-
limit: 90,
18+
limit: 25,
1919
order: [['updatedAt', 'DESC']],
2020
})) as ActionHistoryRecord[]
2121
const parsedActions = feedsHelper.parseActionHistory(actions)

0 commit comments

Comments
 (0)