@crowdin/app-project-module 0.16.4 → 0.16.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -180,7 +180,7 @@ function checkSubscription(config, token, organization, accountType) {
180
180
  //default 2 weeks
181
181
  const defaultSubscriptionPlan = 14;
182
182
  let days;
183
- if (organization) {
183
+ if (accountType === models_1.AccountType.ENTERPRISE) {
184
184
  days = ((_b = config.pricing) === null || _b === void 0 ? void 0 : _b.trialEnterprise) || ((_c = config.pricing) === null || _c === void 0 ? void 0 : _c.trial) || defaultSubscriptionPlan;
185
185
  }
186
186
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.16.4",
3
+ "version": "0.16.5",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",