Skip to content

Commit 0826652

Browse files
committed
Remove unused
1 parent ecbc82a commit 0826652

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import { redirect } from "next/navigation";
2-
import { getUser } from "~/auth/server";
32

43
export default async function PaymentCancelPage({
54
searchParams,
65
}: {
76
searchParams: Promise<{ redirect?: string }>;
87
}) {
98
const params = await searchParams;
10-
const user = await getUser();
11-
12-
// TODO: handle any user subscription related to the user
13-
console.log("[stripe/cancel]", user);
14-
159
redirect(params.redirect || "/");
1610
}
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import { redirect } from "next/navigation";
2-
import { getUser } from "~/auth/server";
32

43
export default async function PaymentSuccessPage({
54
searchParams,
65
}: {
76
searchParams: Promise<{ redirect?: string }>;
87
}) {
98
const params = await searchParams;
10-
const user = await getUser();
11-
12-
console.log("[stripe/success]", user);
13-
149
redirect(params.redirect || "/");
1510
}

0 commit comments

Comments
 (0)