Shane Kilkelly 0a5430468c Alter how the notification doc is built há 10 anos atrás
..
app 0a5430468c Alter how the notification doc is built há 10 anos atrás
config 8050f5ea08 change settings to 3042 há 10 anos atrás
test 0a5430468c Alter how the notification doc is built há 10 anos atrás
.gitignore 1e60327f2e create scaffolding base on tags repo há 11 anos atrás
.nvmrc 197ee9f4d9 add a .nvmrc file há 10 anos atrás
Gruntfile.coffee 5360bcae77 fix unit tests há 10 anos atrás
README.md a17040f00f Add commentary on ttl index há 10 anos atrás
app.coffee fc78bfe86c Add an endpoint to remove a notification by its key alone há 10 anos atrás
package.json afd85f9d90 bump mongojs to 2.4 há 10 anos atrás

README.md

notifications-sharelatex

An API for managing user notifications in ShareLaTeX

database indexes

For notification expiry to work, a ttl index on notifications.expiresFrom must be created:

db.notifications.createIndex({expiresFrom: 1}, {expireAfterSeconds: (60*60*24*30)})