1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

[AC-1418] Adjust organization-subscription-update.request.ts to support both PM and SM

This commit is contained in:
Shane Melton
2023-06-21 15:11:08 -07:00
parent 55eaff06d6
commit e6816aae8e
2 changed files with 71 additions and 2 deletions

View File

@@ -39,7 +39,10 @@ export class AdjustSubscription {
async submit() {
try {
const seatAdjustment = this.newSeatCount - this.currentSeatCount;
const request = new OrganizationSubscriptionUpdateRequest(seatAdjustment, this.newMaxSeats);
const request = OrganizationSubscriptionUpdateRequest.forPasswordManager(
seatAdjustment,
this.newMaxSeats
);
this.formPromise = this.organizationApiService.updateSubscription(
this.organizationId,
request