This commit is contained in:
Valentin Mihai 2024-12-03 12:37:45 +02:00
parent 911516add2
commit 55b21c4989

View File

@ -18,9 +18,7 @@ export interface QueryParam {
*/
export abstract class GenericService<I> {
protected readonly _http = inject(HttpClient);
protected readonly _lastCheckedForChanges = new Map<string, string>([
[ROOT_CHANGES_KEY, new Date(Date.now()).toISOString()],
]);
protected readonly _lastCheckedForChanges = new Map<string, string>([[ROOT_CHANGES_KEY, new Date(Date.now()).toISOString()]]);
protected abstract readonly _defaultModelPath: string;
protected readonly _serviceName: string = 'redaction-gateway-v1';
@ -40,7 +38,7 @@ export abstract class GenericService<I> {
headers: HeadersConfiguration.getHeaders({ contentType: false }),
observe: 'body',
params: this._queryParams(queryParams),
})
});
}
getFor<R = I[]>(entityId: string, queryParams?: List<QueryParam>): Observable<R> {