mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-29 05:21:01 +00:00
Merge branch 'master' of github.com:zoff-music/zoff
This commit is contained in:
@@ -32,6 +32,7 @@ Run
|
|||||||
```
|
```
|
||||||
db.chat_logs.createIndex({ "createdAt": 1 }, { expireAfterSeconds: X });
|
db.chat_logs.createIndex({ "createdAt": 1 }, { expireAfterSeconds: X });
|
||||||
db.timeout_api.createIndex({ "createdAt": 1 }, { expireAfterSeconds: Y });
|
db.timeout_api.createIndex({ "createdAt": 1 }, { expireAfterSeconds: Y });
|
||||||
|
db.api_links.createIndex({ "createdAt": 1 }, { expireAfterSeconds: 86400 });
|
||||||
```
|
```
|
||||||
in mongo to have chat_logs and api be deleted after X and Y seconds.
|
in mongo to have chat_logs and api be deleted after X and Y seconds.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user