mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 11:06:16 -08:00
fix(lint): resolve module-boundary and prefer-inject errors
Retag workspace-shell-util as type:data-access to match its injectable services that depend on @iptvnator/services, and convert RemoteControlService to inject(HttpClient). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
23ead63b1f
commit
e422264327
2 files changed
+3
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { inject, Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { firstValueFrom } from 'rxjs';
|
||||
|
||||
@@ -25,8 +25,7 @@ export interface RemoteControlStatus {
|
||||
})
|
||||
export class RemoteControlService {
|
||||
private readonly apiBaseUrl = '/api/remote-control';
|
||||
|
||||
constructor(private http: HttpClient) {}
|
||||
private readonly http = inject(HttpClient);
|
||||
|
||||
/**
|
||||
* Changes to the next channel
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"sourceRoot": "libs/workspace/shell/util/src",
|
||||
"prefix": "lib",
|
||||
"projectType": "library",
|
||||
"tags": ["scope:workspace", "domain:workspace", "type:util"],
|
||||
"tags": ["scope:workspace", "domain:workspace", "type:data-access"],
|
||||
"targets": {
|
||||
"test": {
|
||||
"executor": "@nx/jest:jest",
|
||||
|
||||
Reference in new issue
Block a user