-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I started a migration from a project to Convex and since I started using Better-Auth and is now possible with Convex, I went all-in. But after following the steps in the documentation, I still had a type error which wouldn't go away, even after thinking I had to bun dev
beforehand.
The code:

The error (on line 35):
Argument of type 'GenericQueryCtx<{ barbershops: { document: { _id: Id<"barbershops">; _creationTime: number; description?: string | undefined; coordinates?: { x: number; y: number; } | undefined; contactPhone?: string | undefined; ... 13 more ...; state: string; }; fieldPaths: ExtractFieldPaths<...> | "_id"; indexes: { ...; }; searc...' is not assignable to parameter of type 'GenericCtx<{ barbershops: { document: { _id: Id<"barbershops">; _creationTime: number; description?: string | undefined; coordinates?: { x: number; y: number; } | undefined; contactPhone?: string | undefined; ... 13 more ...; state: string; }; fieldPaths: ExtractFieldPaths<...> | "_id"; indexes: { ...; }; searchInde...'.
Type 'GenericQueryCtx<{ barbershops: { document: { _id: Id<"barbershops">; _creationTime: number; description?: string | undefined; coordinates?: { x: number; y: number; } | undefined; contactPhone?: string | undefined; ... 13 more ...; state: string; }; fieldPaths: ExtractFieldPaths<...> | "_id"; indexes: { ...; }; searc...' is missing the following properties from type 'GenericMutationCtx<{ barbershops: { document: { _id: Id<"barbershops">; _creationTime: number; description?: string | undefined; coordinates?: { x: number; y: number; } | undefined; contactPhone?: string | undefined; ... 13 more ...; state: string; }; fieldPaths: ExtractFieldPaths<...> | "_id"; indexes: { ...; }; se...': scheduler, runMutationts(2345)
Repo: https://github.com/pulgueta/panabarbero/blob/convex/apps/convex/convex/auth.ts
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working