refactor: sendCheckUserStatusEvent -> checkIsUserPremium

This commit is contained in:
thecodrr
2021-10-26 23:05:47 +05:00
parent 6aebe50ef3
commit 888481b858
6 changed files with 14 additions and 16 deletions

View File

@@ -2,7 +2,7 @@ import EventManager from "./utils/event-manager";
export const EV = new EventManager();
export async function sendCheckUserStatusEvent(type) {
export async function checkIsUserPremium(type) {
if (process.env.NODE_ENV === "test") return true;
const results = await EV.publishWithResult(EVENTS.userCheckStatus, type);