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
- Realtime not processing messages
When subscribing to realtime events of database, the client's websocket receives the messages in the websocket feed, but doesn't call the specific message handl...
- problem with some tables (cant read rows...
I have a weird problem with some tables - they wont show the rows (in console it is stuck loading). I checked in mariadb directly and the collection can be read...
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...