]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't get quota twice
authorChocobozzz <me@florianbigard.com>
Mon, 3 Sep 2018 07:30:13 +0000 (09:30 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 3 Sep 2018 07:30:13 +0000 (09:30 +0200)
client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts

index c9ab35b1d2668262c1624ef387a6743febb7dcdf..b59fb7335117a0fa8e256309adf4871d3431dabf 100644 (file)
@@ -68,10 +68,10 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
     super.ngOnInit()
 
     this.userService.getMyVideoQuotaUsed()
-      .subscribe(data => this.userVideoQuotaUsed = data.videoQuotaUsed)
-
-    this.userService.getMyVideoQuotaUsed()
-      .subscribe(data => this.userVideoQuotaUsedDaily = data.videoQuotaUsedDaily)
+        .subscribe(data => {
+          this.userVideoQuotaUsed = data.videoQuotaUsed
+          this.userVideoQuotaUsedDaily = data.videoQuotaUsedDaily
+        })
   }
 
   ngOnDestroy () {