add dummy teamid (#1968)

This commit is contained in:
David Nguyen
2025-08-16 19:09:21 +10:00
committed by GitHub
parent ea7a2c2712
commit 1dea0b8fab
2 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,7 @@ export const getDocumentWhereInput = async ({
visibility: { visibility: {
in: teamVisibilityFilters, in: teamVisibilityFilters,
}, },
teamId, teamId: team.id,
}, },
// Or, if they are a recipient of the document. // Or, if they are a recipient of the document.
{ {

View File

@ -141,6 +141,7 @@ export const authenticatedMiddleware = t.middleware(async ({ ctx, next, path })
return await next({ return await next({
ctx: { ctx: {
...ctx, ...ctx,
teamId: ctx.teamId || -1,
logger: trpcSessionLogger, logger: trpcSessionLogger,
user: ctx.user, user: ctx.user,
session: ctx.session, session: ctx.session,