From 3677f1c45b4d229b75cd793e96cbb1f6f29792df Mon Sep 17 00:00:00 2001 From: James Collins Date: Fri, 2 Jun 2023 20:44:42 +1000 Subject: [PATCH] fix upcoming events filter --- resources/js/views/Home.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/js/views/Home.vue b/resources/js/views/Home.vue index 83baad0..fb855eb 100644 --- a/resources/js/views/Home.vue +++ b/resources/js/views/Home.vue @@ -211,11 +211,10 @@ const handleLoad = async () => { url: "/events", params: { limit: 4, - status: "open,soon", sort: "start_at", - start_at: - ">" + - new SMDate("now").format("yyyy-MM-dd hh:mm:ss"), + filter: `(status:open,OR,status:soon),AND,start_at:>${new SMDate( + "now" + ).format("yyyy-MM-dd hh:mm:ss")}`, }, }) .then((eventsResult) => {