There was an error while loading. Please reload this page.
1 parent 1397aea commit ba88e35Copy full SHA for ba88e35
1 file changed
apps/backend/routes/auth/saveAudit.ts
@@ -9,7 +9,7 @@ export const saveAudit = async () => {
9
await db.connect();
10
const id = (await db.query({
11
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"`,
+ VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"`,
13
values: [event.claims.sub, auditName, scanFrequency, scheduledAt, saveAndRun ? 'new' : 'draft', JSON.stringify(event.body), emailNotifications, remoteCsvUrl],
14
})).rows[0].id;
15
0 commit comments