Skip to content

Commit

Permalink
Fix for #601 - no pretranslations written
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Jan 15, 2025
1 parent a4203cf commit 27ecd63
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ await _outboxes.UpdateAsync(
Content = serializedContent,
HasContentStream = false
};
string filePath = Path.Combine(_options.CurrentValue.OutboxDir, outboxMessage.Id);
await _messages.InsertAsync(outboxMessage, cancellationToken: cancellationToken);
return outboxMessage.Id;
}
Expand Down Expand Up @@ -87,6 +86,8 @@ await _outboxes.UpdateAsync(
{
await using Stream fileStream = _fileSystem.OpenWrite(filePath);
await contentStream.CopyToAsync(fileStream, cancellationToken);
await fileStream.FlushAsync(cancellationToken);
await fileStream.DisposeAsync();
await _messages.InsertAsync(outboxMessage, cancellationToken: cancellationToken);
return outboxMessage.Id;
}
Expand Down

0 comments on commit 27ecd63

Please sign in to comment.