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
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Migration from Cloud to Self-Hosted not ...
Hello Appwrite Community, I've got the problem, that when I try to migrate my Appwrite Project from the cloud to my self-hosted Appwrite, that an API Key is mi...
- I can't migrate my project from Appwrite...
I'm having an issue migrating my Appwrite project to a self-hosted instance. The problem is that I've exceeded my read rate limit (or database read limit), so I...