Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Sloth.Core/Domain/JournalRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,12 @@ public JournalRequest()
[MinLength(1)]
[Required]
public IList<Transaction> Transactions { get; set; }

/// <summary>
/// Really, a journal request can only have 1 transaction, but if we re-send a JR we loose the tie to the original transaction
/// This doesn't have to be a foreign key, but it should be a unique identifier for the transaction
/// </summary>
[MaxLength(255)]
public string SavedTransactionId { get; set; }
}
}
2 changes: 1 addition & 1 deletion Sloth.Core/Jobs/AggieEnterpriseJournalJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public async Task<AggieEnterpriseJournalJobDetails> UploadTransactions(ILogger l

// here we will store the result of the transaction upload
var journalRequest = new JournalRequest
{ Transactions = new[] { transaction }, Source = source };
{ Transactions = new[] { transaction }, Source = source, SavedTransactionId = transaction.Id };

if (requestStatus.RequestId.HasValue &&
requestStatus.RequestStatus == RequestStatus.Pending)
Expand Down
Loading
Loading