refactor: create album users (#9315)

This commit is contained in:
Jason Rasmussen 2024-05-07 16:38:09 -04:00 committed by GitHub
parent e9f99673b9
commit e79d1b1ec2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 267 additions and 52 deletions

View file

@ -1,6 +1,7 @@
import {
ActivityCreateDto,
AlbumResponseDto,
AlbumUserRole,
AssetFileUploadResponseDto,
LoginResponseDto,
ReactionType,
@ -33,7 +34,7 @@ describe('/activity', () => {
createAlbumDto: {
albumName: 'Album 1',
assetIds: [asset.id],
sharedWithUserIds: [nonOwner.userId],
albumUsers: [{ userId: nonOwner.userId, role: AlbumUserRole.Editor }],
},
},
{ headers: asBearerAuth(admin.accessToken) },