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
8 changed files with 209 additions and 364 deletions
+1 -1
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 });