Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}).then(() => {
const sortByNameQuery = new Kinvey.Query();
sortByNameQuery.ascending("name");
const stream = this.carsStore.find(sortByNameQuery);
return stream.toPromise();
}).then((data) => {
this.allCars = [];
.then((uploadedFile: any) => {
const query = new Kinvey.Query();
query.equalTo("_id", uploadedFile._id);
return Kinvey.Files.find(query);
})
.then((files: Array) => {