hunk.code_window:         .filter(
               (item) =>
                   item.promotions &&
                   item.promotions.promotionalOffers &&
                   item.promotions.promotionalOffers[0] &&
                   dayjs(item.promotions.promotionalOffers[0].promotionalOffers[0].startDate) <= now &&
                   dayjs(item.promotions.promotionalOffers[0].promotionalOffers[0].endDate) > now
           )
           .map(async (item) => {
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:                 item.promotions.promotionalOffers.length &&
                   item.promotions.promotionalOffers[0].promotionalOffers[0].discountSetting.discountType === 'PERCENTAGE' &&
                   item.promotions.promotionalOffers[0].promotionalOffers[0].discountSetting.discountPercentage === 0 &&
  
hunk.file_path: lib/v2/epicgames/index.js
hunk.type: replace
file: const got = require('@/utils/got');
  const cheerio = require('cheerio');
  
  module.exports = async (ctx) => {
      const rootUrl = 'https://www.mathunion.org';
      const currentUrl = `${rootUrl}/imu-awards/fields-medal`;
      const response = await got({
          method: 'get',
          url: currentUrl,
      });
  
      const $ = cheerio.load(response.data);
  
      const items = $('div.main-section')
          .eq(2)
          .find('.list__group')
          .map((_, item) => {
              item = $(item);
              const year = item.find('h3').text();
              const detailUrl = item.find('ul li a').attr('href');
  
              item.find('h3, ul').remove();
  
              return {
                  title: year,
                  link: detailUrl || currentUrl,
                  description: `<ul>${item.html()}</ul>`,
                  pubDate: new Date(`${year}-12-31`).toUTCString(),
              };
          })
          .get();
  
      ctx.state.data = {
          title: $('title').text(),
          link: currentUrl,
          item: items,
      };
  };
  