mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
fix(speech): remove the migration source's model backup on delete
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user