Skip to content

Commit c225258

Browse files
committed
Chore(Types): Fix types on app state
1 parent f9d0513 commit c225258

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/lib/context/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ export const { Provider, useStore } =
4949
permissions: [],
5050
suppliersReports: [],
5151
customersReports: [],
52-
userPermissions: []
52+
userPermissions: [],
53+
invites: []
5354
})

src/lib/tenant-server-props.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Tenant, Prisma } from "@prisma/client";
22
import { GetServerSideProps } from "next";
3-
import { unstable_getServerSession } from "next-auth";
3+
import { getServerSession } from "next-auth";
44
import { authOptions } from "@/core";
55
import { TenantPathProps } from "@/types/TenantPathProps";
66

77
export const getTenantServerSideProps: GetServerSideProps<{ tenant: Pick<Tenant,"tenantId"|"customDomain"|"name"|"subdomain"|"image"|"imageBlurhash"> }, TenantPathProps> = async (context) => {
88
const domains = context.params?.tenant;
9-
const session = await unstable_getServerSession(context.req, context.res, authOptions);
9+
const session = await getServerSession(context.req, context.res, authOptions);
1010
// TODO uncomment this after auth become stable/prod ready
1111
// if(!session?.user){
1212
// return {

0 commit comments

Comments
 (0)