return this.authHttp.get<ResultList<UserServerModel>>(UserService.BASE_USERS_URL, { params })
.pipe(
- map(res => this.restExtractor.convertResultListDateToHuman(res)),
map(res => this.restExtractor.applyToResultListData(res, this.formatUser.bind(this))),
catchError(err => this.restExtractor.handleError(err))
)
}
return Object.assign(user, {
- roleLabel: roleLabels[user.role],
+ role: {
+ id: user.role.id,
+ label: roleLabels[user.role.id]
+ },
videoQuota,
videoQuotaUsed,
rawVideoQuota: user.videoQuota,