Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ divide events backend table to future/current/past events #2641

Merged
merged 3 commits into from
Jun 2, 2024

Conversation

jeyemwey
Copy link
Contributor

@jeyemwey jeyemwey commented Jun 1, 2024

No description provided.

Comment on lines 44 to 55
'events_future' => $queryBase->clone()
->orderBy("begin")
->whereDate("begin", ">", DB::raw("now()"))
->paginate(10, pageName: "future"),
'events_current' => $queryBase->clone()
->orderBy("begin")
->where("begin", "<", DB::raw("now()"))
->where("end", ">", DB::raw("now()"))
->paginate(10, pageName: "current"),
'events_past' => $queryBase->clone()
->where("end", ">", DB::raw("now()"))
->paginate(10, pageName: "past")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Du hast nicht ganz auf dem aktuellen develop gearbeitet - die Spalten begin und end gibt es nicht mehr.

@MrKrisKrisu MrKrisKrisu merged commit dc4e04f into develop Jun 2, 2024
8 checks passed
@MrKrisKrisu MrKrisKrisu deleted the feat/jv/better-event-list branch June 2, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants