Skip to content

Commit

Permalink
fix: object id not uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
naomi-lgbt committed Jan 16, 2025
1 parent 18f3d97 commit 0675c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/fetchRss.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable max-lines -- refactor later */
import { ChannelType, EmbedBuilder } from "discord.js";
import { UUID } from "mongodb";
import { ObjectId, UUID } from "mongodb";

Check failure on line 3 in src/modules/fetchRss.ts

View workflow job for this annotation

GitHub Actions / Lint and Test (22.x)

'UUID' is declared but its value is never read.
// eslint-disable-next-line @typescript-eslint/naming-convention -- Importing a class.
import Parser from "rss-parser";
import { youtubeIds } from "../config/youtubeIds.js";
Expand Down Expand Up @@ -331,7 +331,7 @@ export const fetchRss = async(bot: ExtendedClient): Promise<void> => {
},
update: query,
where: {
id: latestPosts?.id ?? new UUID().toString(),
id: latestPosts?.id ?? new ObjectId().toString(),
},
});

Expand Down

0 comments on commit 0675c6e

Please sign in to comment.