mirror of
https://github.com/immich-app/immich.git
synced 2026-03-04 09:57:33 +03:00
fix(server): library refresh not checking trashed assets (#10495)
* set `withDeleted` * update sql
This commit is contained in:
@@ -188,7 +188,8 @@ export class AssetRepository implements IAssetRepository {
|
||||
@GenerateSql({ params: [DummyValue.UUID, DummyValue.STRING] })
|
||||
getByLibraryIdAndOriginalPath(libraryId: string, originalPath: string): Promise<AssetEntity | null> {
|
||||
return this.repository.findOne({
|
||||
where: { library: { id: libraryId }, originalPath: originalPath },
|
||||
where: { library: { id: libraryId }, originalPath },
|
||||
withDeleted: true,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user