EUGENIO SOUZA CARVALHO 3 years ago
parent
commit
cc1d2348a2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      api/mongo.go

+ 3 - 2
api/mongo.go

@@ -791,8 +791,9 @@ func (t *Mongo) FindMany(f *Filter) (cursor *mongo.Cursor, err *errs.Error) {
 }
 
 func createDebugEvent(options *Filter, eventType string) *DebugEvent {
-	debug := options.Context.Values().Get("#debug")
-	event := debug.Event(eventType)
+	// debug := options.Context.Values().Get("#debug")
+	debug := options.Context.Values().Get("#debug").(*DebugTaks)
+	event := debug.Event(eventType, "")
 	event.Data = iris.Map{}
 	return event
 }