Don't get quota twice

pull/1007/merge
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
1 changed files with 4 additions and 4 deletions

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