@posiwise/user-module 0.0.186 → 0.0.187
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.
|
@@ -43,9 +43,9 @@ import { TranslocoPipe, TranslocoService } from "@jsverse/transloco";
|
|
|
43
43
|
import cloneDeep from "lodash/cloneDeep";
|
|
44
44
|
import sortBy from "lodash/sortBy";
|
|
45
45
|
import { catchError, map as map$1, mergeMap, switchMap } from "rxjs/operators";
|
|
46
|
-
import { HttpErrorResponse, HttpParams } from "@angular/common/http";
|
|
47
46
|
import { GetUser, getUser } from "@posiwise/app-store";
|
|
48
47
|
import { Store } from "@ngrx/store";
|
|
48
|
+
import { HttpErrorResponse } from "@angular/common/http";
|
|
49
49
|
import { Clipboard } from "@angular/cdk/clipboard";
|
|
50
50
|
import { AdminService, AppAdmin } from "@posiwise/admin-module-utils";
|
|
51
51
|
import { ResizableColumn, SortIcon, SortableColumn, Table } from "primeng/table";
|
|
@@ -1885,12 +1885,8 @@ var SubscriptionRemovalComponent = class SubscriptionRemovalComponent {
|
|
|
1885
1885
|
request(reason) {
|
|
1886
1886
|
const body = { reason_to_cancel: reason };
|
|
1887
1887
|
const { subscriptionId, productId } = this.target;
|
|
1888
|
-
if (this.isWholeSubscription) return this.subscriptionService.deleteWholeSubscription(subscriptionId,
|
|
1889
|
-
|
|
1890
|
-
return this.subscriptionService.deleteSubscription(subscriptionId, {
|
|
1891
|
-
params,
|
|
1892
|
-
body
|
|
1893
|
-
});
|
|
1888
|
+
if (this.isWholeSubscription) return this.subscriptionService.deleteWholeSubscription(subscriptionId, body);
|
|
1889
|
+
return this.subscriptionService.deleteSubscription(subscriptionId, productId, body);
|
|
1894
1890
|
}
|
|
1895
1891
|
static {
|
|
1896
1892
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|