From d08c38c0b34c5a2815aa614fc606a4616ea4faf0 Mon Sep 17 00:00:00 2001 From: joel Date: Fri, 27 Oct 2023 18:26:03 -0700 Subject: [PATCH] bump the inngest version --- examples/inngest/package.json | 2 +- examples/inngest/src/app/api/inngest/route.ts | 2 +- examples/inngest/src/inngest/functions/hello-world.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/inngest/package.json b/examples/inngest/package.json index 0fa45c21a754f..3592b8cd9bb7f 100755 --- a/examples/inngest/package.json +++ b/examples/inngest/package.json @@ -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" diff --git a/examples/inngest/src/app/api/inngest/route.ts b/examples/inngest/src/app/api/inngest/route.ts index 6ed4a695ca384..ed9c2f485a542 100755 --- a/examples/inngest/src/app/api/inngest/route.ts +++ b/examples/inngest/src/app/api/inngest/route.ts @@ -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]) diff --git a/examples/inngest/src/inngest/functions/hello-world.ts b/examples/inngest/src/inngest/functions/hello-world.ts index ee4c36f3b8e19..304bb6d9552dc 100755 --- a/examples/inngest/src/inngest/functions/hello-world.ts +++ b/examples/inngest/src/inngest/functions/hello-world.ts @@ -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 } } )