From 2b07f1651410cb1338bed6d996ef2645200eb317 Mon Sep 17 00:00:00 2001 From: Ou Date: Sat, 19 Oct 2024 19:13:46 +0800 Subject: [PATCH] fix: type --- server/utils/rss2json.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/rss2json.ts b/server/utils/rss2json.ts index bdb254f..32a2bff 100644 --- a/server/utils/rss2json.ts +++ b/server/utils/rss2json.ts @@ -1,6 +1,6 @@ -import type { RSSInfo } from "@shared/types" import { XMLParser } from "fast-xml-parser" import { $fetch } from "ofetch" +import type { RSSInfo } from "../types" export async function rss2json(url: string): Promise { if (!/^https?:\/\/[^\s$.?#].\S*/i.test(url)) return