Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Dupa {
- public getCars(): Cars {
- return this.carsRepository.getCars()
- .then((cars) => {
- return cars;
- })
- .then((cars) => {
- cars.forEach((car) => {
- this.someRepository.updateSomethingByCar(car)
- .then((sth) => console.log(sth));
- });
- })
- .catch((err) => console.log(err));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement