mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
chore: enable strict mode (#1569)
* chore: enable strict mode * refactor: remove sync data access from PatchDbService * launchable even when no LAN url Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
This commit is contained in:
@@ -37,9 +37,9 @@ export enum PatchConnection {
|
||||
})
|
||||
export class PatchDbService {
|
||||
private readonly WS_SUCCESS = 'wsSuccess'
|
||||
private patchConnection$ = new ReplaySubject<PatchConnection>(1)
|
||||
private wsSuccess$ = new BehaviorSubject(false)
|
||||
private polling$ = new BehaviorSubject(false)
|
||||
private readonly patchConnection$ = new ReplaySubject<PatchConnection>(1)
|
||||
private readonly wsSuccess$ = new BehaviorSubject(false)
|
||||
private readonly polling$ = new BehaviorSubject(false)
|
||||
private subs: Subscription[] = []
|
||||
|
||||
readonly connected$ = this.watchPatchConnection$().pipe(
|
||||
@@ -48,12 +48,6 @@ export class PatchDbService {
|
||||
shareReplay(),
|
||||
)
|
||||
|
||||
errors = 0
|
||||
|
||||
getData() {
|
||||
return this.patchDb.store.cache.data
|
||||
}
|
||||
|
||||
constructor(
|
||||
// [wsSources, pollSources]
|
||||
@Inject(PATCH_SOURCE) private readonly sources: Source<DataModel>[],
|
||||
|
||||
Reference in New Issue
Block a user