use correct locals value
This commit is contained in:
parent
4f23600e6d
commit
9bf22e34c7
2 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ import { fail, type Actions } from '@sveltejs/kit';
|
|||
import zod from 'zod';
|
||||
|
||||
export const load = async (event) => {
|
||||
const tenantId = event.locals.auth!.orgId!;
|
||||
const tenantId = event.locals.tenant.id;
|
||||
|
||||
const configs = await prisma.tenantConfig.findUnique({
|
||||
where: { tenantId: tenantId },
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { fail, type Actions } from '@sveltejs/kit';
|
|||
import zod from 'zod';
|
||||
|
||||
export const load = async (event) => {
|
||||
const tenantId = event.locals.auth!.orgId!;
|
||||
const tenantId = event.locals.tenant.id;
|
||||
|
||||
const configs = await prisma.tenantConfig.findUnique({
|
||||
where: { tenantId: tenantId },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue