This commit is contained in:
David Nguyen
2025-02-05 00:57:00 +11:00
parent 540cc5bfc1
commit 1057ae6d2a
105 changed files with 379 additions and 357 deletions

View File

@ -36,17 +36,7 @@ export const createHonoTrpcContext = async ({
.catch(() => undefined)
.parse(rawTeamId);
if (!session) {
return {
session: null,
user: null,
teamId,
req,
metadata,
};
}
if (!user) {
if (!session || !user) {
return {
session: null,
user: null,
@ -58,7 +48,7 @@ export const createHonoTrpcContext = async ({
return {
session,
user, // Todo
user,
teamId,
req,
metadata,