fixed some issues with the data access service, support for requesting all IDs of filtered documents (required for selection)

This commit is contained in:
jonaswinkler
2020-12-11 14:46:38 +01:00
parent 63a58ccc38
commit 2c702eb568
3 changed files with 15 additions and 9 deletions

View File

@@ -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)
}
}
}