mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
* adjust types for patchdb ui data and create seed file * feat: For init and the migration use defaults * fix update path * update build for ui seed file * fix accidential revert * chore: Convert to do during the init * chore: Update the commit message Co-authored-by: BluJ <mogulslayer@gmail.com>
13 lines
329 B
TypeScript
13 lines
329 B
TypeScript
import { PatchDB } from 'patch-db-client'
|
|
import {
|
|
DataModel,
|
|
UIMarketplaceData,
|
|
} from 'src/app/services/patch-db/data-model'
|
|
import { firstValueFrom, map } from 'rxjs'
|
|
|
|
export function getMarketplace(
|
|
patch: PatchDB<DataModel>,
|
|
): Promise<UIMarketplaceData> {
|
|
return firstValueFrom(patch.watch$('ui', 'marketplace'))
|
|
}
|