mirror of
https://github.com/documenso/documenso.git
synced 2025-11-20 03:32:14 +10:00
fix: wip
This commit is contained in:
@ -53,7 +53,7 @@ export const appContext = async (c: Context, next: Next) => {
|
||||
|
||||
const result = await Promise.all([
|
||||
getTeams({ userId: session.user.id }),
|
||||
teamUrl ? getTeamByUrl({ userId: session.user.id, teamUrl }) : null,
|
||||
teamUrl ? getTeamByUrl({ userId: session.user.id, teamUrl }).catch(() => null) : null,
|
||||
]);
|
||||
|
||||
teams = result[0];
|
||||
|
||||
@ -24,8 +24,10 @@ export interface HonoEnv {
|
||||
|
||||
const app = new Hono<HonoEnv>();
|
||||
|
||||
/**
|
||||
* Attach session and context to requests.
|
||||
*/
|
||||
app.use(contextStorage());
|
||||
|
||||
app.use(appContext);
|
||||
|
||||
// App middleware.
|
||||
|
||||
Reference in New Issue
Block a user