Skip to content

Commit 940ea65

Browse files
authored
Merge pull request #6121 from mozilla/mntor-4954
Call connection on dashboard page
2 parents 6113988 + a1c4980 commit 940ea65

File tree

1 file changed

+2
-0
lines changed
  • src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/dashboard/[[...slug]]

1 file changed

+2
-0
lines changed

src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/dashboard/[[...slug]]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import {
5555
getScansCountForProfile,
5656
isEligibleForFreeScan,
5757
} from "../../../../../../../functions/server/moscary";
58+
import { connection } from "next/server";
5859

5960
const dashboardTabSlugs = ["action-needed", "fixed"];
6061

@@ -68,6 +69,7 @@ type Props = {
6869
};
6970

7071
export default async function DashboardPage(props: Props) {
72+
await connection();
7173
const searchParams = await props.searchParams;
7274
if (searchParams.dialog === "subscriptions") {
7375
return redirect("/subscription-plans");

0 commit comments

Comments
 (0)