refactor: migrate stack repo to kysely (#15440)

* wip

* wip: add tags

* wip

* sql

* pr feedback

* pr feedback

* ergonomic

* pr feedback

* pr feedback
This commit is contained in:
Alex 2025-01-21 09:36:28 -06:00 committed by GitHub
parent 887267b133
commit 318dd32363
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 209 additions and 364 deletions

View file

@ -39,7 +39,7 @@ export class StackService extends BaseService {
throw new BadRequestException('Primary asset must be in the stack');
}
const updatedStack = await this.stackRepository.update({ id, primaryAssetId: dto.primaryAssetId });
const updatedStack = await this.stackRepository.update(id, { id, primaryAssetId: dto.primaryAssetId });
await this.eventRepository.emit('stack.update', { stackId: id, userId: auth.user.id });