fix(speech): remove the migration source's model backup on delete

This commit is contained in:
Kelvin Amoaba
2026-11-11 05:53:33 +00:00
parent fba40e996b
commit 02f506f25f
+1
View File
@@ -252,6 +252,7 @@ export class ModelManager extends SpeechModelDownloadTransport {
if (existsSync(sourceModelDir)) {
await rm(sourceModelDir, { recursive: true, force: true })
}
await rm(previousSpeechModelDir(sourceModelDir), { recursive: true, force: true })
}
this.modelStates.delete(modelId)
}