Don't get quota twice

This commit is contained in:
Chocobozzz 2018-09-03 09:30:13 +02:00
parent 769ac6c11f
commit 348106f20c
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View 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 () {