diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index e1fadf9..b863253 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -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' diff --git a/api/src/routes/retrieve.js b/api/src/routes/retrieve.js index edb3a47..53bbb5a 100644 --- a/api/src/routes/retrieve.js +++ b/api/src/routes/retrieve.js @@ -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();