Skip to content

Commit 1a42f6f

Browse files
committed
Add general catch block
1 parent 0face3a commit 1a42f6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Infrastructure.EntityFramework/Repositories/CollectionRepository.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,10 @@ public async Task CreateDefaultCollectionsAsync(Guid organizationId, IEnumerable
827827
await transaction.RollbackAsync();
828828
throw new DuplicateDefaultCollectionException();
829829
}
830+
catch
831+
{
832+
await transaction.RollbackAsync();
833+
}
830834
}
831835

832836
public async Task CreateDefaultCollectionsBulkAsync(Guid organizationId, IEnumerable<Guid> organizationUserIds, string defaultCollectionName)

0 commit comments

Comments
 (0)