fix and conversions
This commit is contained in:
@@ -274,7 +274,7 @@ func (s MongoDBStorage) StoreRouteSchedules(js []internal.PlannedRouteSchedule)
|
||||
return s.PersistedKVPut(documents)
|
||||
}
|
||||
|
||||
func (s MongoDBStorage) GetRouteSchedules(id string) (*internal.PlannedRouteSchedule, error) {
|
||||
func (s MongoDBStorage) GetRouteSchedule(id string) (*internal.PlannedRouteSchedule, error) {
|
||||
|
||||
var result internal.PlannedRouteSchedule
|
||||
err := s.PersistedKVGet(id, &result)
|
||||
|
||||
@@ -23,7 +23,7 @@ type Storage interface {
|
||||
StoreSearchResults([]internal.SearchResult) error
|
||||
GetSearchResult(id string) (*internal.SearchResult, error)
|
||||
StoreRouteSchedules([]internal.PlannedRouteSchedule) error
|
||||
GetRouteSchedules(id string) (*internal.PlannedRouteSchedule, error)
|
||||
GetRouteSchedule(id string) (*internal.PlannedRouteSchedule, error)
|
||||
}
|
||||
|
||||
func NewStorage(cfg *viper.Viper) (Storage, error) {
|
||||
|
||||
Reference in New Issue
Block a user