mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	fix(server): Create album response doesn't have owner property as required (#1704)
This commit is contained in:
		@@ -84,7 +84,11 @@ export class AlbumRepository implements IAlbumRepository {
 | 
			
		||||
      newAlbum.ownerId = ownerId;
 | 
			
		||||
      newAlbum.albumName = createAlbumDto.albumName;
 | 
			
		||||
 | 
			
		||||
      const album = await transactionalEntityManager.save(newAlbum);
 | 
			
		||||
      let album = await transactionalEntityManager.save(newAlbum);
 | 
			
		||||
      album = await transactionalEntityManager.findOneOrFail(AlbumEntity, {
 | 
			
		||||
        where: { id: album.id },
 | 
			
		||||
        relations: ['owner'],
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
      // Add shared users
 | 
			
		||||
      if (createAlbumDto.sharedWithUserIds?.length) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user