This commit is contained in:
+2
-2
@@ -126,8 +126,8 @@ func (s MongoDBStorage) GetRegularAvailabilities(day int, timeInDay string) ([]*
|
||||
cur, err := s.Collections.DriversRegularAvailabilities.Find(context.Background(),
|
||||
bson.M{
|
||||
"day": day,
|
||||
"start_time": bson.M{"$lt": timeInDay},
|
||||
"end_time": bson.M{"$gt": timeInDay},
|
||||
"start_time": bson.M{"$lte": timeInDay},
|
||||
"end_time": bson.M{"$gte": timeInDay},
|
||||
})
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("GetDriverAvailabilities DB find - error")
|
||||
|
||||
Reference in New Issue
Block a user