Shane Kilkelly 7bb6e6e18c Merge branch 'master' into pr-remove-by-key 10 år sedan
..
app a17040f00f Add commentary on ttl index 10 år sedan
config 8050f5ea08 change settings to 3042 10 år sedan
test 7bb6e6e18c Merge branch 'master' into pr-remove-by-key 10 år sedan
.gitignore 1e60327f2e create scaffolding base on tags repo 11 år sedan
.nvmrc 197ee9f4d9 add a .nvmrc file 10 år sedan
Gruntfile.coffee 5360bcae77 fix unit tests 10 år sedan
README.md a17040f00f Add commentary on ttl index 10 år sedan
app.coffee fc78bfe86c Add an endpoint to remove a notification by its key alone 10 år sedan
package.json afd85f9d90 bump mongojs to 2.4 10 år sedan

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)})