mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 07:10:56 -08:00
refactor(server): rename asset stack to stack (#10828)
This commit is contained in:
11
server/src/interfaces/stack.interface.ts
Normal file
11
server/src/interfaces/stack.interface.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { StackEntity } from 'src/entities/stack.entity';
|
||||
|
||||
export const IStackRepository = 'IStackRepository';
|
||||
|
||||
export interface IStackRepository {
|
||||
create(stack: Partial<StackEntity>): Promise<StackEntity>;
|
||||
update(stack: Pick<StackEntity, 'id'> & Partial<StackEntity>): Promise<StackEntity>;
|
||||
delete(id: string): Promise<void>;
|
||||
getById(id: string): Promise<StackEntity | null>;
|
||||
deleteAll(userId: string): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user