chore: freeze guide and explain update
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type {
|
||||
GuideLocationPreview,
|
||||
GuideRouteReadiness,
|
||||
MuseumFloor,
|
||||
MuseumPoi
|
||||
} from '@/domain/museum'
|
||||
@@ -57,7 +58,7 @@ export interface GuideRepository {
|
||||
getPoiById(id: string): Promise<MuseumPoi | null>
|
||||
searchPois(keyword?: string): Promise<MuseumPoi[]>
|
||||
getLocationPreview(poiId: string): Promise<GuideLocationPreview | null>
|
||||
getRouteReadiness(): typeof NAV_ROUTE_READINESS
|
||||
getRouteReadiness(): Promise<GuideRouteReadiness>
|
||||
}
|
||||
|
||||
export class StaticGuideRepository implements GuideRepository {
|
||||
@@ -114,8 +115,9 @@ export class StaticGuideRepository implements GuideRepository {
|
||||
return poi ? toLocationPreview(poi) : null
|
||||
}
|
||||
|
||||
getRouteReadiness() {
|
||||
return NAV_ROUTE_READINESS
|
||||
async getRouteReadiness() {
|
||||
return this.provider.loadRouteReadiness()
|
||||
.catch(() => NAV_ROUTE_READINESS)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user