use correct locals value

This commit is contained in:
Benjamin Palko 2025-01-17 11:39:48 -05:00
parent 4f23600e6d
commit 9bf22e34c7
2 changed files with 2 additions and 2 deletions

View file

@ -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 },

View file

@ -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 },