Skip to content

Commit

Permalink
Merge pull request #47 from diggerhq/fix/refresh-session-dashboard-route
Browse files Browse the repository at this point in the history
Refresh session on the dashboard route
  • Loading branch information
ZIJ authored Sep 13, 2024
2 parents e812bfa + 32cc538 commit 20153ba
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { getInitialOrganizationToRedirectTo } from '@/data/user/organizations';
import { refreshSessionAction } from '@/data/user/session';
import { toSiteURL } from '@/utils/helpers';
import { NextRequest, NextResponse } from 'next/server';

export const dynamic = 'force-dynamic';

export async function GET(req: NextRequest) {
await refreshSessionAction();
try {
const initialOrgId = req.cookies.get('organization')?.value;
if (initialOrgId) {
Expand Down

0 comments on commit 20153ba

Please sign in to comment.