Skip to content

Commit

Permalink
fix lowPriority import and labelTreatments date timezone (#116)
Browse files Browse the repository at this point in the history
* fix lowPriority and export date timezone

* lint

---------

Co-authored-by: Antoine Jeanneney <[email protected]>
  • Loading branch information
ajeanneney and Antoine Jeanneney committed Jul 16, 2024
1 parent 3ab5bd6 commit a57b98f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions packages/generic/backend/src/lib/connector/buildConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,20 @@ function buildConnector(connectorConfig: connectorConfigType) {
if (!isPreassignated) {
logger.log({
operationName: 'importSpecificDocument',
msg: 'No preAssignation found, setting documentStatus to free.',
msg:
'No preAssignation found, setting documentStatus to next status.',
});
await documentService.updateDocumentStatus(
idModule.lib.buildId(document._id),
'free',
);
if (lowPriority) {
await documentService.updateDocumentStatus(
idModule.lib.buildId(document._id),
'free',
);
} else {
await documentService.updateDocumentStatus(
idModule.lib.buildId(document._id),
'toBeConfirmed',
);
}
}
}
}
Expand Down

0 comments on commit a57b98f

Please sign in to comment.