refactor(server): stack owner (#10900)

This commit is contained in:
Jason Rasmussen 2024-07-05 16:16:53 -04:00 committed by GitHub
parent f6cafa3290
commit e1f25b44d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 46 additions and 34 deletions

View file

@ -350,6 +350,7 @@ describe(AssetService.name, () => {
expect(stackMock.delete).toHaveBeenCalledWith('stack-1');
expect(stackMock.create).toHaveBeenCalledWith({
assets: [{ id: 'child-1' }, { id: 'parent' }, { id: 'child-1' }, { id: 'child-2' }],
ownerId: 'user-id',
primaryAssetId: 'parent',
});
expect(assetMock.updateAll).toBeCalledWith(['child-1', 'parent', 'child-1', 'child-2'], {