Skip to content

Commit

Permalink
fix: pass event
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 21, 2024
1 parent aeeb435 commit d7e1a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/question.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default defineEventHandler(async event => {
if (event.method === 'OPTIONS') return null
const sanity = useSanity()
const sanity = useSanity(event)

Check failure on line 3 in server/api/question.ts

View workflow job for this annotation

GitHub Actions / test

Argument of type 'H3Event<EventHandlerRequest>' is not assignable to parameter of type 'string'.

assertMethod(event, 'POST')
const { question } = await readBody(event)
Expand Down

0 comments on commit d7e1a14

Please sign in to comment.