Skip to content

Commit

Permalink
bump the inngest version
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhooks committed Oct 28, 2023
1 parent bbb0b71 commit d08c38c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/inngest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "next start"
},
"dependencies": {
"inngest": "^2.7.1",
"inngest": "^3.4.1",
"next": "latest",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/inngest/src/app/api/inngest/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { serve } from 'inngest/next'
import { inngest } from '../../../inngest/inngest.client'
import { inngest } from '@/inngest/inngest.client'
import { helloWorld } from '@/inngest/functions/hello-world'

export const { GET, POST, PUT } = serve(inngest, [helloWorld])
2 changes: 1 addition & 1 deletion examples/inngest/src/inngest/functions/hello-world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const helloWorld = inngest.createFunction(
{ id: 'hello-world', name: 'Hello World' },
{ event: 'test/hello.world' },
async ({ event, step }) => {
await step.sleep('1s')
await step.sleep('sleep for a second', '1s')
return { event, body: event.data.message }
}
)

0 comments on commit d08c38c

Please sign in to comment.