2019-05-07 15:23:20 +00:00
|
|
|
|
overleaf/notifications
|
2016-01-14 12:35:16 +00:00
|
|
|
|
===============
|
|
|
|
|
|
2019-05-07 15:23:20 +00:00
|
|
|
|
An API for managing user notifications in Overleaf
|
2016-08-11 11:03:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
database indexes
|
|
|
|
|
================
|
|
|
|
|
|
2016-08-12 10:38:17 +00:00
|
|
|
|
For notification expiry to work, a TTL index on `notifications.expires` must be created:
|
2016-08-11 11:03:50 +00:00
|
|
|
|
|
|
|
|
|
```javascript
|
2016-08-12 10:38:17 +00:00
|
|
|
|
db.notifications.createIndex({expires: 1}, {expireAfterSeconds: 10})
|
2016-08-11 11:03:50 +00:00
|
|
|
|
```
|
2019-05-09 11:03:27 +00:00
|
|
|
|
|
|
|
|
|
License
|
|
|
|
|
=======
|
|
|
|
|
The code in this repository is released under the GNU AFFERO GENERAL PUBLIC LICENSE, version 3.
|
|
|
|
|
|
|
|
|
|
Copyright (c) Overleaf, 2016–2019.
|