Skip to content

Commit

Permalink
fix(): minor
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Jul 18, 2017
1 parent d5758dd commit 2a41ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngx-uploader/classes/ngx-uploader.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EventEmitter } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import { Subscriber } from 'rxjs/Subscriber';
import 'rxjs/add/observable/merge';
import 'rxjs/add/observable/from';
import 'rxjs/add/operator/mergeAll';

export enum UploadStatus {
Expand Down Expand Up @@ -123,7 +123,7 @@ export class NgUploaderService {
break;
case 'uploadAll':
const concurrency = event.concurrency > 0 ? event.concurrency : Number.POSITIVE_INFINITY;
Observable.merge(this.files.map(file => this.uploadFile(file, event)))
Observable.from(this.files.map(file => this.uploadFile(file, event)))
.mergeAll(concurrency)
.subscribe((data: UploadOutput) => this.serviceEvents.emit(data));
break;
Expand Down

0 comments on commit 2a41ff5

Please sign in to comment.