Skip to content

Commit

Permalink
fix: use the right user schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jrea committed Feb 2, 2024
1 parent c9a1bcc commit 3294a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/database-simple/app/api/login/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function POST(req: Request) {
const headers = new Headers(loginResp.headers);

const [tenant] = await db('tenant_users')
.withSchema('user')
.withSchema('users')
.leftJoin(
db('tenants').withSchema('public').as('tenants'),
'tenants.id',
Expand Down

0 comments on commit 3294a21

Please sign in to comment.