Add new interest pause and list existing interest pause periods of the loan
This commit is contained in:
committed by
Jose Alberto Hernandez
parent
a6455212fd
commit
d04890fd3f
@@ -24,7 +24,7 @@ export class NotificationsResolver implements Resolve<Object> {
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
resolve(): Observable<any> {
|
||||
return this.notificationsService.getNotifications(true);
|
||||
return this.notificationsService.getNotifications(true, 50);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ export class NotificationsService {
|
||||
/**
|
||||
* @returns {Observable<any>} Notifications.
|
||||
*/
|
||||
getNotifications(isRead: boolean): Observable<any> {
|
||||
const httpParams = new HttpParams().set('isRead', isRead.toString());
|
||||
getNotifications(isRead: boolean, limit: number): Observable<any> {
|
||||
const httpParams = new HttpParams().set('isRead', isRead.toString()).set('limit', limit);
|
||||
return this.http.get('/notifications', { params: httpParams });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user