refactor(server): stack owner (#10900)
This commit is contained in:
1 parent
f6cafa3290
commit
e1f25b44d2
14 files changed
+46
-34
No files matched your search
@@ -3,9 +3,8 @@ import { StackEntity } from 'src/entities/stack.entity';
|
||||
export const IStackRepository = 'IStackRepository';
|
||||
|
||||
export interface IStackRepository {
|
||||
create(stack: Partial<StackEntity>): Promise<StackEntity>;
|
||||
create(stack: Partial<StackEntity> & { ownerId: string }): 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