fix errors

This commit is contained in:
ld3zian 2025-02-04 19:17:28 -07:00
parent 0daac66b26
commit 22c3e665e8
4 changed files with 19 additions and 3 deletions

View file

@ -355,8 +355,8 @@ export async function getChaptersForSlugs(
);
}
// Add this new validation function
async function validateSlugs(slugs: string[]): Promise<string[]> {
// Add export to the validation function
export async function validateSlugs(slugs: string[]): Promise<string[]> {
const validSlugs: string[] = [];
const invalidSlugs: string[] = [];

View file

@ -1,5 +1,6 @@
import Redis from 'ioredis';
import type { FeedMapping } from './types';
import { getChaptersForSlugs } from './api';
const REDIS_URL = import.meta.env.REDIS_URL || process.env.REDIS_URL;
let redisClient: Redis | null = null;