refactor(payment): remove vip status flow
This commit is contained in:
@@ -8,7 +8,6 @@ import {
|
||||
PayChannel,
|
||||
PaymentOrderStatusResponse,
|
||||
PaymentPlansResponse,
|
||||
PaymentVipStatusResponse,
|
||||
} from "@/data/dto/payment";
|
||||
import { paymentRepository } from "@/data/repositories/payment_repository";
|
||||
import type { IPaymentRepository } from "@/data/repositories/interfaces";
|
||||
@@ -45,10 +44,3 @@ export const pollPaymentOrderStatusActor = fromPromise<
|
||||
if (Result.isErr(result)) throw result.error;
|
||||
return result.data;
|
||||
});
|
||||
|
||||
export const loadPaymentVipStatusActor =
|
||||
fromPromise<PaymentVipStatusResponse>(async () => {
|
||||
const result = await paymentRepo.getVipStatus();
|
||||
if (Result.isErr(result)) throw result.error;
|
||||
return result.data;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user