Spaces:
Sleeping
Sleeping
File size: 457 Bytes
7f81110 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import { Request, Response, NextFunction } from "express";
import { PlanUpgradeError } from "../../../../domain/errors/PlanUpgradeError";
export const PlanGuardMiddleware = (requiredPlan: string) => {
return (req: Request, res: Response, next: NextFunction) => {
// const plan = req.tenantContext?.plan;
// if (!plan || plan !== requiredPlan) {
// return next(new PlanUpgradeError());
// }
next();
};
};
|