🚑 hotfix: update all section that need uuidv7

This commit is contained in:
Rafi Arrafif
2026-01-29 02:58:13 +07:00
parent 467faedf28
commit c5afbb963f
8 changed files with 42 additions and 18 deletions

View File

@ -18,7 +18,6 @@ export const bulkInsertCharWithVAService = async (malId: number) => {
for (const charEntry of charactersWithVAData.data) {
// Insert character if not exists
const characterInsertedId = await bulkInsertCharactersRepository({
id: generateUUIDv7(),
malId: charEntry.character.mal_id,
name: charEntry.character.name,
role: charEntry.role,
@ -43,7 +42,6 @@ export const bulkInsertCharWithVAService = async (malId: number) => {
// Link character with inserted VAs
for (const langVA of insertedVAs) {
await bulkInsertLangVARepository({
id: generateUUIDv7(),
language: langVA.lang,
vaId: langVA.staffId,
charId: characterInsertedId.id,

View File

@ -7,7 +7,6 @@ import { Person } from "../../types/mediaCharWithVAInfo";
export const bulkInsertStaffOrPeopleService = async (peopleData: Person) => {
try {
return await bulkInsertVoiceActorRepository({
id: generateUUIDv7(),
malId: peopleData.mal_id,
name: peopleData.name,
imageUrl: peopleData.images.jpg.image_url,