mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 10:35:21 +00:00
Enlarge search payments n refunds range from 1 year to 3 years (#171)
* Enlarge search payments n refunds range from 1 year to 3 years * Update payment-details.service.ts * Update payments.service.ts
This commit is contained in:
parent
8276b9850a
commit
f8f7257aad
@ -26,7 +26,7 @@ export class PaymentsService extends PartialFetcher<PaymentSearchResult, Payment
|
||||
continuationToken: string
|
||||
): Observable<FetchResult<PaymentSearchResult>> {
|
||||
return this.paymentSearchService.searchPaymentsByDuration(
|
||||
{ amount: 1, unit: 'y' },
|
||||
{ amount: 3, unit: 'y' },
|
||||
params,
|
||||
this.searchLimit,
|
||||
continuationToken
|
||||
|
@ -10,7 +10,7 @@ import { PaymentSearchService } from '../../api/search';
|
||||
export class PaymentDetailsService {
|
||||
payment$ = this.route.params.pipe(
|
||||
switchMap(({ invoiceID, paymentID }) =>
|
||||
this.paymentSearchService.getPaymentByDuration({ amount: 1, unit: 'y' }, invoiceID, paymentID)
|
||||
this.paymentSearchService.getPaymentByDuration({ amount: 3, unit: 'y' }, invoiceID, paymentID)
|
||||
),
|
||||
catchError(() => {
|
||||
this.snackBar.open(this.transloco.translate('httpError'), 'OK');
|
||||
|
@ -19,7 +19,7 @@ export class RefundsService extends PartialFetcher<RefundSearchResult, RefundsSe
|
||||
continuationToken: string
|
||||
): Observable<FetchResult<RefundSearchResult>> {
|
||||
return this.refundSearchService.searchRefundsByDuration(
|
||||
{ amount: 1, unit: 'y' },
|
||||
{ amount: 3, unit: 'y' },
|
||||
invoiceID,
|
||||
paymentID,
|
||||
this.searchLimit,
|
||||
|
Loading…
Reference in New Issue
Block a user