fix(utils): fix error when generating migrations for a module with existing snapshot (#14218)

This commit is contained in:
Shahed Nasser
2025-12-08 08:54:32 +02:00
committed by GitHub
parent a791ea03ab
commit b517137466
2 changed files with 6 additions and 1 deletions

View File

@@ -210,7 +210,7 @@ export class Migrations extends EventEmitter<MigrationsEvents> {
)
if (snapshotFile) {
const absoluteName = join(snapshotFile.path, snapshotFile.name)
const absoluteName = join(snapshotFile.parentPath, snapshotFile.name)
if (absoluteName !== snapshotPath) {
await rename(absoluteName, snapshotPath)
}