🚧 wip: try to create character with VA in bulk

This commit is contained in:
Rafi Arrafif
2026-01-24 22:02:34 +07:00
parent 7d26ca7f7b
commit fe10412f1a
9 changed files with 153 additions and 13 deletions

View File

@ -2,12 +2,14 @@ import { Context } from "elysia";
import { mainErrorHandler } from "../../../helpers/error/handler";
import { bulkInsertAnimeService } from "../services/bulkInsertAnime.service";
import { returnWriteResponse } from "../../../helpers/callback/httpResponse";
import { bulkInsertCharWithVAService } from "../services/internal/bulkInsertCharWithVA.service";
export const bulkInsertAnimeController = async (
ctx: Context & { body: { mal_id: number } },
) => {
try {
const bulkInsertResult = await bulkInsertAnimeService(ctx.body.mal_id);
// const bulkInsertResult = await bulkInsertAnimeService(ctx.body.mal_id);
const bulkInsertResult = await bulkInsertCharWithVAService(ctx.body.mal_id);
return returnWriteResponse(
ctx.set,
201,