Skip to content

Commit

Permalink
fix: 🐛 case MangaType return Blogtruyen
Browse files Browse the repository at this point in the history
  • Loading branch information
hyuse202 committed Jun 27, 2023
1 parent 05a07fe commit 10b437b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/manga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { MangaType } from "../constants/manga";
import { Nettruyen } from "../lib/nettruyen";
import { AbstractMangaFactory, constructorParams } from "../types/type";
import { AsuraScans } from "./asurascans";
import { Blogtruyen } from "./blogtruyen";
import { Toonily } from "./toonily";

export class Manga {
Expand Down Expand Up @@ -34,7 +35,7 @@ export class Manga {
);
}
case MangaType.BLOGTRUYEN: {
return new AsuraScans(
return new Blogtruyen(
params !== undefined && params.baseUrl !== undefined
? params.baseUrl
: "https://blogtruyen.vn"
Expand Down

0 comments on commit 10b437b

Please sign in to comment.