Skip to content

Commit

Permalink
fix: duplicate column audit_date
Browse files Browse the repository at this point in the history
Signed-off-by: Maud Royer <[email protected]>
  • Loading branch information
jillro committed Jul 11, 2024
1 parent 9c3737c commit 95b6c59
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 @@ -1019,7 +1019,7 @@ async function updateAuditRecordState ({ user, record }, patch) {
{ user, record }
))

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

0 comments on commit 95b6c59

Please sign in to comment.