🚧 wip: try to create character with VA in bulk
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user