createThumbnail doesn't return all the URLs

private generateThumbnails( url: string, duration: number, photosCount: number ) {



		return new Promise(( resolve, reject ) => {
			let totalDuration;
			let thumbDurBreak = duration / photosCount;
			let thumbList = [];
			let fileNamePrefix = new Date().getTime().toString();

			for ( var i = 1; i <= photosCount; i++ ) {



				this.videoEditor.createThumbnail( {
					fileUri: this.file.externalRootDirectory + 'videoFolder/testv.mp4',
					outputFileName: new Date().getTime() + "_" + i,
					atTime: thumbDurBreak * i,
					quality: 100
				});
					.then(( result ) => {
                                                console.log(result);
						thumbList.push( result );
						if ( thumbList.length == photosCount ) {
							resolve( thumbList );
						}
					})
					.catch( err => {
						reject( err );
					});



			}

		});


	}

logs only one PATH instead of all the paths

Please edit your post and use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

Also: Do you have a question or did you only want to show us your code?