mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: sync stacks (#19629)
This commit is contained in:
parent
095ace8687
commit
181a7e115f
35 changed files with 646 additions and 62 deletions
|
|
@ -19,7 +19,7 @@ export class StackService extends BaseService {
|
|||
async create(auth: AuthDto, dto: StackCreateDto): Promise<StackResponseDto> {
|
||||
await this.requireAccess({ auth, permission: Permission.ASSET_UPDATE, ids: dto.assetIds });
|
||||
|
||||
const stack = await this.stackRepository.create({ ownerId: auth.user.id, assetIds: dto.assetIds });
|
||||
const stack = await this.stackRepository.create({ ownerId: auth.user.id }, dto.assetIds);
|
||||
|
||||
await this.eventRepository.emit('stack.create', { stackId: stack.id, userId: auth.user.id });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue