mirror of
https://github.com/ld3z/new-manga.git
synced 2026-11-09 19:44:02 -07:00
fix errors
This commit is contained in:
parent
0daac66b26
commit
22c3e665e8
4 changed files with 19 additions and 3 deletions
|
|
@ -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[] = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue