mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-26 01:09:34 -06:00
Chore: update to Angular 20 (#10273)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { HttpClient } from '@angular/common/http'
|
||||
import { Injectable } from '@angular/core'
|
||||
import { Injectable, inject } from '@angular/core'
|
||||
import { Observable, switchMap } from 'rxjs'
|
||||
import { User } from 'src/app/data/user'
|
||||
import { PermissionsService } from '../permissions.service'
|
||||
@@ -10,11 +9,11 @@ const endpoint = 'users'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class UserService extends AbstractNameFilterService<User> {
|
||||
constructor(
|
||||
http: HttpClient,
|
||||
private permissionService: PermissionsService
|
||||
) {
|
||||
super(http, endpoint)
|
||||
private permissionService = inject(PermissionsService)
|
||||
|
||||
constructor() {
|
||||
super()
|
||||
this.resourceName = endpoint
|
||||
}
|
||||
|
||||
update(o: User): Observable<User> {
|
||||
|
||||
Reference in New Issue
Block a user