Merge branch 'setop-main-patch-92671' into 'main'
include ongoing events in search Closes #729 See merge request framasoft/mobilizon!1171
This commit is contained in:
commit
93805dca11
@ -1287,7 +1287,12 @@ defmodule Mobilizon.Events do
|
|||||||
if is_nil(begins_on) do
|
if is_nil(begins_on) do
|
||||||
query
|
query
|
||||||
else
|
else
|
||||||
where(query, [q], q.begins_on >= ^begins_on)
|
where(
|
||||||
|
query,
|
||||||
|
[q],
|
||||||
|
(not is_nil(q.ends_on) and q.ends_on > ^begins_on) or
|
||||||
|
(is_nil(q.ends_on) and q.begins_on >= ^begins_on)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user