Remove ContentXML field from Tender entity and related repository method
- Eliminated the `ContentXML` field from the `Tender` struct in the entity definition, streamlining the data model. - Removed the `FindTendersWithContentXML` method from the `TenderRepository` interface, as it is no longer necessary. - Updated the `ToTender` method in the `NoticeWorker` to reflect these changes, ensuring consistency across the codebase. This update simplifies the tender data structure and repository interface, improving maintainability and clarity in the tender management system.
This commit is contained in:
@@ -565,7 +565,6 @@ func (w *NoticeWorker) ToTender(n *notice.Notice) (*tender.Tender, error) {
|
||||
t.ProcurementProjectID = n.ProcurementProjectID
|
||||
t.SourceFileURL = n.SourceFileURL
|
||||
t.SourceFileName = n.SourceFileName
|
||||
t.ContentXML = n.ContentXML
|
||||
// Preserve document-scraping/summarization flags on the tender (managed by
|
||||
// downstream workers), but refresh the notice-side processing metadata.
|
||||
t.ProcessingMetadata.ScrapedAt = n.ProcessingMetadata.ScrapedAt
|
||||
|
||||
Reference in New Issue
Block a user