Skip to content

Commit

Permalink
show only current beers in transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Geertvdc committed Oct 19, 2019
1 parent 536b80c commit 46b127b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class FridgeService {
}

getUserBeers(user: string): Observable<Array<Beer>>{
return this.http.get<Array<Beer>>(`${AppConfig.settings.apiUrl}/beer`).map(beers => beers.filter(b => b.createdBy === user));
return this.http.get<Array<Beer>>(`${AppConfig.settings.apiUrl}/beer`).map(beers => beers.filter(b => b.createdBy === user && b.removedBy == null));
}

getHistoricalBeers(): Observable<Array<Beer>>{
Expand Down

0 comments on commit 46b127b

Please sign in to comment.