Skip to content

Commit

Permalink
Merge pull request #209 from AgenceBio/date_audit_offline
Browse files Browse the repository at this point in the history
Permet d'enregistrer la date d'audit hors-ligne
  • Loading branch information
jillro committed Jul 9, 2024
2 parents e0fd7d3 + 28aca6c commit 881abf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/providers/cartobio.js
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ async function updateAuditRecordState ({ user, record }, patch) {
{ user, record }
))

if (state === CertificationState.AUDITED) {
if (state === CertificationState.AUDITED && !('audit_date' in patch)) {
columns.push('audit_date')
placeholders.push(`$${columns.length + 1}`)
values.push('NOW()')
Expand Down

0 comments on commit 881abf1

Please sign in to comment.