mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor: migrate move repository to kysely (#15327)
* refactor: migrate move repository to kysely * fix: tests * fix: tests
This commit is contained in:
parent
fc99c5f530
commit
a35af2b242
5 changed files with 56 additions and 35 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue