We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3d9de27 + a86a937 commit a766c29Copy full SHA for a766c29
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "hawk.api",
3
- "version": "1.4.7",
+ "version": "1.4.8",
4
"main": "index.ts",
5
"license": "BUSL-1.1",
6
"scripts": {
src/resolvers/workspace.js
@@ -436,7 +436,8 @@ module.exports = {
436
437
const defaultPlan = await factories.plansFactory.getDefaultPlan();
438
439
- if (workspaceModel.tariffPlanId === defaultPlan.id) {
+ // Prevent re-applying the free plan if workspace is already on it.
440
+ if (workspaceModel.tariffPlanId.toString() === defaultPlan._id.toString()) {
441
throw new UserInputError('You already use default plan');
442
}
443
0 commit comments