Hello! I am trying to determine users who are currently active. Not just logged in, but active and my thought process involves create a server side function that loops through the activity log of the last 30 minutes of each users. and I have created a collection that will update their status as active or inactive depending on the activity logs length.
Can you please guide me on the Query I need to make? I have the current time and thiry minutes prev time in milliseconds const response = users.listLogs(userId, [Query(...)])
Thank you so much
If you're querying against a datetime attribute, you'll need to pass a iso formatted string in UTC timezone
Recommended threads
- [SOLVED] Error upgrading from 1.8.1 to 1...
DO Self-hosted server failed to upgrade with this error "Error response from daemon: client version 1.52 is too new. Maximum supported API version is 1.42". U...
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...