Stripe subscription update error

I'm working on a nuxt project with better-auth and stripe plugin. I have this code :
const checkout = async () => {
  const { data, error } = await client.subscription.upgrade({
    plan: 'pro',
    successUrl: '/settings/billing',
    cancelUrl: '/settings/billing'
  })

  console.log('data', data)
  console.log('error', error)
}

It redirect me on the stripe checkout page but I when I proceed I recieve this error :
Argument periodStart: Invalid value provided. Expected DateTime, NullableDateTimeFieldUpdateOperationsInput or Null, provided Int.       

    Invalid prisma.subscription.update() invocation:

    {
    where: {
    referenceId: "1234"
    },
    data: {
    plan: "pro",
    stripeSubscriptionId: "sub_1234",
    status: "active",
    periodStart: 1741337914,
    ~~~~~~~~~~
    periodEnd: 1744016314,
    seats: 1
    }
    }
Solution
@bekacru I have the version 1.2.4-beta.5
Was this page helpful?