Skip to content

Commit 3d2fa76

Browse files
authored
Merge pull request #3 from socketlabs/fix/multiple-attachments
Fixes bug with multiple attachments
2 parents 4533d42 + c02971f commit 3d2fa76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SocketLabs/InjectionApi/Core/InjectionRequestFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ internal virtual List<AttachmentJson> PopulateList(IEnumerable<IAttachment> atta
115115

116116
var results = new List<AttachmentJson>();
117117

118-
var attachmentJson = new AttachmentJson();
119118
foreach (var attachment in attachments)
120119
{
120+
var attachmentJson = new AttachmentJson();
121121
attachmentJson.Name = attachment.Name;
122122
attachmentJson.ContentType = attachment.MimeType;
123123
attachmentJson.ContentId = attachment.ContentId;

0 commit comments

Comments
 (0)