Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
madcampos committed Sep 27, 2024
1 parent 39c86ee commit 7ec7001
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/changelog.xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import rss, { type RSSFeedItem } from '@astrojs/rss';
import { getImage } from 'astro:assets';
import { getCollection } from 'astro:content';


import defaultImage from '../assets/icons/logo.png';

export const GET: APIRoute = async (context) => {
Expand All @@ -23,7 +22,7 @@ export const GET: APIRoute = async (context) => {
title: 'TorontoJS Blog Changelog',
description: 'Changelog (Version History) for TorontoJS Blog, containing all recent changes.',
site: BLOG_URL,
items: await Promise.all((await getCollection('changelog')).map(async (changelog) => {
items: (await getCollection('changelog')).map((changelog) => {
const versionNumber = changelog.id.replace('.md', '');
const { versionName } = changelog.data;

Expand All @@ -41,7 +40,7 @@ export const GET: APIRoute = async (context) => {
};

return item;
})),
}),
customData: `
<language>en-us</language>
<image>
Expand Down

0 comments on commit 7ec7001

Please sign in to comment.