mirror of
https://github.com/immich-app/immich.git
synced 2026-01-15 14:33:16 -08:00
refactor(server): view repository (#12755)
This commit is contained in:
8
server/src/interfaces/view.interface.ts
Normal file
8
server/src/interfaces/view.interface.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { AssetEntity } from 'src/entities/asset.entity';
|
||||
|
||||
export const IViewRepository = 'IViewRepository';
|
||||
|
||||
export interface IViewRepository {
|
||||
getAssetsByOriginalPath(userId: string, partialPath: string): Promise<AssetEntity[]>;
|
||||
getUniqueOriginalPaths(userId: string): Promise<string[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user