mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-17 03:56:31 +01:00
fixed some issues with the data access service, support for requesting all IDs of filtered documents (required for selection)
This commit is contained in:
parent
63a58ccc38
commit
2c702eb568
3 changed files with 15 additions and 9 deletions
|
|
@ -54,9 +54,9 @@ export abstract class AbstractPaperlessService<T extends ObjectWithId> {
|
|||
|
||||
private _listAll: Observable<Results<T>>
|
||||
|
||||
listAll(ordering?: string, extraParams?): Observable<Results<T>> {
|
||||
listAll(sortField?: string, sortDirection?: string, extraParams?): Observable<Results<T>> {
|
||||
if (!this._listAll) {
|
||||
this._listAll = this.list(1, 100000, ordering, extraParams).pipe(
|
||||
this._listAll = this.list(1, 100000, sortField, sortDirection, extraParams).pipe(
|
||||
publishReplay(1),
|
||||
refCount()
|
||||
)
|
||||
|
|
@ -94,4 +94,4 @@ export abstract class AbstractPaperlessService<T extends ObjectWithId> {
|
|||
this._listAll = null
|
||||
return this.http.put<T>(this.getResourceUrl(o.id), o)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue