lint
This commit is contained in:
parent
911516add2
commit
55b21c4989
@ -18,9 +18,7 @@ export interface QueryParam {
|
|||||||
*/
|
*/
|
||||||
export abstract class GenericService<I> {
|
export abstract class GenericService<I> {
|
||||||
protected readonly _http = inject(HttpClient);
|
protected readonly _http = inject(HttpClient);
|
||||||
protected readonly _lastCheckedForChanges = new Map<string, string>([
|
protected readonly _lastCheckedForChanges = new Map<string, string>([[ROOT_CHANGES_KEY, new Date(Date.now()).toISOString()]]);
|
||||||
[ROOT_CHANGES_KEY, new Date(Date.now()).toISOString()],
|
|
||||||
]);
|
|
||||||
protected abstract readonly _defaultModelPath: string;
|
protected abstract readonly _defaultModelPath: string;
|
||||||
protected readonly _serviceName: string = 'redaction-gateway-v1';
|
protected readonly _serviceName: string = 'redaction-gateway-v1';
|
||||||
|
|
||||||
@ -40,7 +38,7 @@ export abstract class GenericService<I> {
|
|||||||
headers: HeadersConfiguration.getHeaders({ contentType: false }),
|
headers: HeadersConfiguration.getHeaders({ contentType: false }),
|
||||||
observe: 'body',
|
observe: 'body',
|
||||||
params: this._queryParams(queryParams),
|
params: this._queryParams(queryParams),
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getFor<R = I[]>(entityId: string, queryParams?: List<QueryParam>): Observable<R> {
|
getFor<R = I[]>(entityId: string, queryParams?: List<QueryParam>): Observable<R> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user