Skip to content

Commit

Permalink
chore: register new function
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhooks committed Dec 20, 2024
1 parent 922ed56 commit de0dae6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {inngest} from '@/inngest/inngest.server'
import {prisma} from '@skillrecordings/database'

export const syncConvertkitPurchases = inngest.createFunction(
export const activateNormalPrice = inngest.createFunction(
{id: `check-price-after-promo-ends`, name: `Check Price After Promo Ends`},
{
cron: '0 * * * *',
Expand Down
9 changes: 8 additions & 1 deletion apps/total-typescript/src/inngest/inngest-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ import {inngest} from '@/inngest/inngest.server'
import {userCreated} from '@/inngest/functions/user/user-created'
import {sanityProductFunctions} from '@/inngest/functions/sanity/product'
import {syncConvertkitPurchases} from '@/inngest/functions/sync-convertkit-purchases'
import {activateNormalPrice} from '@/inngest/functions/activate-normal-price'

export const inngestConfig = {
client: inngest,
functions: [userCreated, ...sanityProductFunctions, syncConvertkitPurchases],
functions: [
userCreated,
...sanityProductFunctions,
syncConvertkitPurchases,
activateNormalPrice,
],
}

0 comments on commit de0dae6

Please sign in to comment.