Skip to content

Commit

Permalink
fix(route/ps): monthly-games (#17211)
Browse files Browse the repository at this point in the history
* fix(route/ps): monthly-games list target element updated to #monthly-games

* fix(route/ps): link tag

---------

Co-authored-by: wanghao9 <[email protected]>
  • Loading branch information
whzxc and wanghao9 authored Oct 21, 2024
1 parent 8d76a00 commit 71e1fce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/routes/ps/monthly-games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ async function handler() {
const { data: response } = await got(baseUrl);
const $ = load(response);

const list = $('.cmp-experiencefragment--your-latest-monthly-games .box')
const list = $('#monthly-games .box--light ')
.toArray()
.map((item) => {
item = $(item);
.map((e) => {
const item = $(e);
return {
title: item.find('h3').text(),
description: art(path.join(__dirname, 'templates/monthly-games.art'), {
img: item.find('.media-block__img source').attr('srcset'),
text: item.find('h3 + p').text(),
}),
link: item.find('.button a').attr('href'),
link: item.find('.btn--cta').attr('href'),
};
});

Expand Down

0 comments on commit 71e1fce

Please sign in to comment.