Update src/lib/events.ts
This commit is contained in:
parent
6624e52709
commit
cf3c1f99a8
1 changed files with 18 additions and 6 deletions
|
@ -32,12 +32,24 @@ export const fetchNextUpcoming = async () => {
|
|||
}>(`
|
||||
query {
|
||||
event_attendances(filter: {
|
||||
start_date: {
|
||||
_between: [
|
||||
"${now.toISODate()}",
|
||||
"${now.plus({ days: 120 }).toISODate()}"
|
||||
]
|
||||
}
|
||||
_or: [
|
||||
{
|
||||
start_date: {
|
||||
_between: [
|
||||
"${now.toISODate()}",
|
||||
"${now.plus({ days: 120 }).toISODate()}"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
end_date: {
|
||||
_between: [
|
||||
"${now.minus({ days: 2 }).toISODate()}",
|
||||
"${now.plus({ days: 120 }).toISODate()}"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}, sort: [
|
||||
"start_date"
|
||||
], limit: 3) {
|
||||
|
|
Loading…
Add table
Reference in a new issue