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