Skip to content

Commit

Permalink
document queue repository updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
devinleighsmith committed Dec 23, 2024
1 parent 0826505 commit ff6a6b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/backend/dal/Repositories/DocumentQueueRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public PimsDocumentQueue Update(PimsDocumentQueue queuedDocument, bool removeDoc
}

queuedDocument.MayanError = queuedDocument.MayanError?.Truncate(4000);
queuedDocument.DataSourceTypeCode = existingQueuedDocument.DataSourceTypeCode; // Do not allow the data source to be updated.
Context.Entry(existingQueuedDocument).CurrentValues.SetValues(queuedDocument);

queuedDocument = Context.Update(queuedDocument).Entity;
Expand Down Expand Up @@ -92,6 +93,7 @@ public IEnumerable<PimsDocumentQueue> GetAllByFilter(DocumentQueueFilter filter)
.Include(dq => dq.DocumentNavigation)
.ThenInclude(d => d.DocumentType)
.Include(dq => dq.DocumentQueueStatusTypeCodeNavigation)
.Include(dq => dq.DataSourceTypeCodeNavigation)
.Where(q => true);

if (filter.DataSourceTypeCode != null)
Expand Down

0 comments on commit ff6a6b5

Please sign in to comment.