Skip to content

Commit

Permalink
[server] Deprecate 'userGetsMoreResources' in usage-based billing
Browse files Browse the repository at this point in the history
  • Loading branch information
jankeromnes committed Aug 29, 2022
1 parent 336d4fa commit f3d8a78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/server/ee/src/billing/entitlement-service-ubp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ export class EntitlementServiceUBP implements EntitlementService {
}
}

/**
* DEPRECATED: With usage-based billing, users can choose exactly how many resources they want to get.
* Thus, we no longer need to "force" extra resources via the `userGetsMoreResources` mechanism.
*/
async userGetsMoreResources(user: User, date: Date = new Date()): Promise<boolean> {
return this.hasPaidSubscription(user, date);
return false;
}

/**
Expand Down

0 comments on commit f3d8a78

Please sign in to comment.