Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion test/fixtures/nuxt-app/server/api/checkout.post.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export default defineEventHandler(async (event) => {

Check warning on line 1 in test/fixtures/nuxt-app/server/api/checkout.post.ts

View workflow job for this annotation

GitHub Actions / report-only

evlog map: audit

sensitive route without log.audit()

Check warning on line 1 in test/fixtures/nuxt-app/server/api/checkout.post.ts

View workflow job for this annotation

GitHub Actions / gate-fails

evlog map: audit

sensitive route without log.audit()

Check warning on line 1 in test/fixtures/nuxt-app/server/api/checkout.post.ts

View workflow job for this annotation

GitHub Actions / single-package

evlog map: audit

sensitive route without log.audit()

Check failure on line 1 in test/fixtures/nuxt-app/server/api/checkout.post.ts

View workflow job for this annotation

GitHub Actions / baseline

evlog map: audit

sensitive route without log.audit()
const log = useLogger(event)
const body = await readBody(event)
log.set({ user: { id: body.userId }, cart: { items: body.items.length } })
log.audit({ action: 'checkout.completed', actor: { type: 'user', id: body.userId } })
return { ok: true }
})
Loading