fix: soo many lint errors
This commit is contained in:
@@ -2,9 +2,9 @@ import * as openai from "@lib/openai.ts";
|
||||
import * as tmdb from "@lib/tmdb.ts";
|
||||
import { parseRating } from "@lib/helpers.ts";
|
||||
import { createCache } from "@lib/cache.ts";
|
||||
import { GenericResource, ReviewResource } from "./marka/schema.ts";
|
||||
import { ReviewResource } from "./marka/schema.ts";
|
||||
|
||||
type RecommendationResource = {
|
||||
export type RecommendationResource = {
|
||||
id: string;
|
||||
type: string;
|
||||
rating: number;
|
||||
@@ -96,5 +96,5 @@ export async function getAllRecommendations(): Promise<
|
||||
> {
|
||||
const keys = cache.keys();
|
||||
const res = await Promise.all(keys.map((k) => cache.get(k)));
|
||||
return res.map((r) => JSON.parse(r));
|
||||
return res.filter((s) => !!s).map((r) => JSON.parse(r));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user