Skip to content

Commit

Permalink
fix: permet d'enregistrer la date d'audit hors-ligne
Browse files Browse the repository at this point in the history
Signed-off-by: Maud Royer <[email protected]>
  • Loading branch information
jillro committed Jul 9, 2024
1 parent e0fd7d3 commit 28aca6c
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 28aca6c

Please sign in to comment.