mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 04:11:38 +00:00
88f5f29982
Set the `expires` field to be a date in the future, after which the document should be removed.
14 lines
309 B
Markdown
14 lines
309 B
Markdown
notifications-sharelatex
|
|
===============
|
|
|
|
An API for managing user notifications in ShareLaTeX
|
|
|
|
|
|
database indexes
|
|
================
|
|
|
|
For notification expiry to work, a TTL index on `notifications.expires` must be created:
|
|
|
|
```javascript
|
|
db.notifications.createIndex({expires: 1}, {expireAfterSeconds: 10})
|
|
```
|