Skip to content

Commit

Permalink
Perform casting to IEnumerable<object>
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-zahiri committed Dec 10, 2024
1 parent e4aea27 commit 53d27b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Persistence/Wolverine.Marten/IMartenOp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ public class StoreManyDocs<T> : DocumentsOp where T : notnull
{
private readonly T[] _documents;

public StoreManyDocs(T[] documents) : base(documents)
public StoreManyDocs(IEnumerable<T> documents) : base(documents.Cast<object>())
{
_documents = documents;
_documents = documents.ToArray();
}

public override void Execute(IDocumentSession session)
Expand Down Expand Up @@ -332,9 +332,9 @@ public abstract class DocumentsOp : IMartenOp
{
public object[] Documents { get; }

protected DocumentsOp(params object[] documents)
protected DocumentsOp(IEnumerable<object> documents)
{
Documents = documents;
Documents = documents.ToArray();
}

public abstract void Execute(IDocumentSession session);
Expand Down

0 comments on commit 53d27b4

Please sign in to comment.