Skip to content

Commit 4bd5f58

Browse files
fix: disable free plan reset
1 parent 3d9de27 commit 4bd5f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolvers/workspace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ module.exports = {
436436

437437
const defaultPlan = await factories.plansFactory.getDefaultPlan();
438438

439-
if (workspaceModel.tariffPlanId === defaultPlan.id) {
439+
if (workspaceModel.tariffPlanId.toString() === defaultPlan._id.toString()) {
440440
throw new UserInputError('You already use default plan');
441441
}
442442

0 commit comments

Comments
 (0)