Verified Commit db817323 authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Fix event query for frontpage

parent efed4c0f
Pipeline #58029 failed with stages
in 10 minutes
......@@ -12,10 +12,15 @@ import generateReducer from '../common/reducer'
const lists = {
frontpage: {
useQuery: false,
createBaseQuery: () => ({
createBaseQuery: now => ({
max_results: 6,
sort: ['-priority', '-time_advertising_start'],
where: { show_website: true, img_poster: { $ne: null } },
where: {
show_website: true,
time_start: { $gt: now },
time_advertising_start: { $lt: now },
img_poster: { $ne: null },
},
}),
},
upcomingWithOpenRegistration: {
......
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