chore(architecture): enforce app data boundaries
This commit is contained in:
@@ -16,7 +16,7 @@ import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
import { MobileShell } from "@/app/_components/core/mobile-shell";
|
||||
import { getPaymentRepository } from "@/data/repositories/payment_repository";
|
||||
import { getCurrentVipPaymentStatus } from "@/lib/payment/payment_status";
|
||||
import { ROUTES } from "@/router/routes";
|
||||
|
||||
export default function SubscriptionSuccessPage() {
|
||||
@@ -33,7 +33,7 @@ export default function SubscriptionSuccessPage() {
|
||||
let cancelled = false;
|
||||
const tryRefresh = async (attemptsLeft: number) => {
|
||||
if (cancelled) return;
|
||||
const r = await getPaymentRepository().getVipStatus();
|
||||
const r = await getCurrentVipPaymentStatus();
|
||||
if (cancelled) return;
|
||||
if (r.success) {
|
||||
if (r.data.isVip) {
|
||||
|
||||
Reference in New Issue
Block a user