mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +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:
9
frontend/projects/ui/src/app/util/get-marketplace.ts
Normal file
9
frontend/projects/ui/src/app/util/get-marketplace.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { first } from 'rxjs/operators'
|
||||
import { PatchDbService } from 'src/app/services/patch-db/patch-db.service'
|
||||
import { UIMarketplaceData } from 'src/app/services/patch-db/data-model'
|
||||
|
||||
export function getMarketplace(
|
||||
patch: PatchDbService,
|
||||
): Promise<UIMarketplaceData> {
|
||||
return patch.watch$('ui', 'marketplace').pipe(first()).toPromise()
|
||||
}
|
||||
Reference in New Issue
Block a user