refactor: migrate move repository to kysely (#15327)

* refactor: migrate move repository to kysely

* fix: tests

* fix: tests
This commit is contained in:
Alex 2025-01-13 22:22:03 -06:00 committed by GitHub
parent fc99c5f530
commit a35af2b242
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 56 additions and 35 deletions

View file

@ -183,7 +183,7 @@ export class StorageCore {
return;
}
move = await this.moveRepository.update({ id: move.id, oldPath: actualPath, newPath });
move = await this.moveRepository.update(move.id, { id: move.id, oldPath: actualPath, newPath });
} else {
move = await this.moveRepository.create({ entityId, pathType, oldPath, newPath });
}
@ -225,7 +225,7 @@ export class StorageCore {
}
await this.savePath(pathType, entityId, newPath);
await this.moveRepository.delete(move);
await this.moveRepository.delete(move.id);
}
private async verifyNewPathContentsMatchesExpected(