From 3653df10e5f319ca153b9e23bfb2f42c72636fe2 Mon Sep 17 00:00:00 2001 From: tsukumi Date: Fri, 10 Jan 2025 05:19:18 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E3=83=97=E3=83=AD=E3=82=B8=E3=82=A7?= =?UTF-8?q?=E3=82=AF=E3=83=88=E3=81=AE=E3=83=AD=E3=83=BC=E3=83=89=E3=83=BB?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=99=82=E3=81=AB=E7=99=BA=E7=94=9F=E3=81=99?= =?UTF-8?q?=E3=82=8B=20ZodError=20=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 余りにも Sentry に上がってくるのでおかしいな…とちゃんと調べたら、プロジェクトファイルのマイグレーション実装が足りていなかったらしい ただしエラーが発生しても特に落ちたりはしないようで、誰も気づかなかった?とかなのかも --- src/domain/project/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/domain/project/index.ts b/src/domain/project/index.ts index 062aea08..42ff6a83 100644 --- a/src/domain/project/index.ts +++ b/src/domain/project/index.ts @@ -335,6 +335,15 @@ export const migrateProjectFileObject = async ( projectData.talk.audioItems[audioItemsKey].query.pauseLengthScale = 1; } } + + // プリセット内の文内無音倍率の追加 + if (projectData.presets?.items) { + for (const presetKey in projectData.presets.items) { + if (!("pauseLengthScale" in projectData.presets.items[presetKey])) { + projectData.presets.items[presetKey].pauseLengthScale = 1; + } + } + } } // Validation check