Database Cleaner Function
Function to cleanup active pairs and participants collections in the database.
Remove documents older than X days from the active_pairs collection and stale participants documents.
Response
Sample 200
Response: Database Cleanup completed
Setting | Value |
---|---|
Runtime | Node (18.0) |
Entrypoint | src/main.js |
Build Commands | npm install && npm run start |
Permissions | any |
CRON | 0 1 * * * |
Timeout (Seconds) | 900 |
API Key to use Appwrite Sever SDK.
Question | Answer |
---|---|
Required | Yes |
Sample Value | 62...97 |
Documentation | Appwrite API Keys |
Database ID of master database in appwrite.
Question | Answer |
---|---|
Required | Yes |
Sample Value | Zjc...5PH |
Documentation | Resonate |
Collection ID of rooms collection.
Question | Answer |
---|---|
Required | Yes |
Sample Value | NXOi3...IBHDa |
Documentation | Resonate |
Collection ID of participants collection.
Question | Answer |
---|---|
Required | Yes |
Sample Value | NXOi3...IBHDa |
Documentation | Resonate |
Collection ID of active_pairs collection.
Question | Answer |
---|---|
Required | Yes |
Sample Value | NXOi3...IBHDa |
Documentation | Resonate |
The number of days you want to retain the active pair document.
Question | Answer |
---|---|
Required | Yes |
Sample Value | 1 |