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 Query();
sortByNameQuery.ascending("name");
const stream = this.carsStore.find(sortByNameQuery);
return stream.toPromise();
}).then((data) => {
this.allCars = [];
return this._login().then(() => this._carsStore.sync()).then(() => {
const sortByNameQuery = new Kinvey.Query();
sortByNameQuery.ascending("name");
const stream = this._carsStore.find(sortByNameQuery);
return stream.toPromise();
}).then((data) => {
this._allCars = [];
.then((uploadedFile) => {
const query = new Kinvey.Query();
query.equalTo("_id", uploadedFile._id);
return Kinvey.Files.find(query);
})
.then((files) => {
.then((uploadedFile: any) => {
const query = new Query();
query.equalTo("_id", uploadedFile._id);
return Files.find(query);
})
.then((files: Array) => {