Skip to content

Commit ba88e35

Browse files
committed
Remote CSV: fix for missing audit save data index
1 parent 1397aea commit ba88e35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/backend/routes/auth/saveAudit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const saveAudit = async () => {
99
await db.connect();
1010
const id = (await db.query({
1111
text: `INSERT INTO "audits" ("user_id", "name", "interval", "scheduled_at", "status", "payload", "email_notifications", "remote_csv_url")
12-
VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"`,
12+
VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"`,
1313
values: [event.claims.sub, auditName, scanFrequency, scheduledAt, saveAndRun ? 'new' : 'draft', JSON.stringify(event.body), emailNotifications, remoteCsvUrl],
1414
})).rows[0].id;
1515

0 commit comments

Comments
 (0)