Created
November 27, 2019 19:32
-
-
Save whisher/cc0677ad794fe6c25f6de1529feb3702 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getPendingOrders(): Observable<MatrixPendingOrders[]> { | |
return this.accountFacade.account$.pipe( | |
switchMap(account => { | |
let id: any = ''; | |
if (account) { | |
id = account.auth.id; | |
} | |
return this.service.getPendingOrders(id); | |
}), | |
map((data: PendingOrdersDto) => data.orders), | |
map((rows: PendingOrderDto[]) => { | |
return this.buildData(rows); | |
}) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment