Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 14.x

- uses: actions/cache@v2
- uses: actions/cache@v4
id: yarn-cache
with:
path: '**/node_modules'
Expand Down
2 changes: 2 additions & 0 deletions api/src/routes/retrieve.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export default () => asyncRoute(async (req, res) => {
return set;
}, new Set());

await redis.incr(`most_popular_content:request-log:${tenant}:${realm}:${granularity}:${limit}`);

const now = new Date();
const start = dayjs(now).startOf('hour').subtract(1, granularity).toDate();
const end = dayjs(now).startOf('hour').toDate();
Expand Down
Loading