Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Dupa {
  2.     public async getCars(): Cars {
  3.         try {
  4.             lett cars = this.carsRepository.getCars();
  5.        
  6.             cars.forEach((car) => {
  7.                 let sth = this.someRepository.updateSomethingByCar(car);
  8.            
  9.                 console.log(sth);
  10.             })
  11.         } catch (err) {
  12.             console.log(err);
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement