Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawk.api",
"version": "1.4.7",
"version": "1.4.8",
"main": "index.ts",
"license": "BUSL-1.1",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/resolvers/workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ module.exports = {

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

if (workspaceModel.tariffPlanId === defaultPlan.id) {
if (workspaceModel.tariffPlanId.toString() === defaultPlan._id.toString()) {
throw new UserInputError('You already use default plan');
}

Expand Down