Commit cdf07b4d authored by Andrea Ruggiero's avatar Andrea Ruggiero
Browse files

Improve performance

parent b59af7a5
Pipeline #1559 failed with stage
in 0 seconds
...@@ -13,7 +13,7 @@ class EventRepository extends BaseRepository ...@@ -13,7 +13,7 @@ class EventRepository extends BaseRepository
} }
public function getSimilarEvents($event) { public function getSimilarEvents($event) {
return $this->db()->where('title', $event->title)->where('date', $event->date)->where('start', $event->start)->where('end', $event->end)->get(); return $this->db()->where('title', $event->title)->where('date', $event->date)->where('start', $event->start)->where('end', $event->end)->select('place')->select('event_id')->get();
} }
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment