Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DB.findOneAndUpdate(args)
- .then((result) => {
- DB.createIndex({
- 'name': 'sessions',
- 'keys': {'lastLogin': 1},
- 'options': {expireAfterSeconds: req.session.cookie.maxAge}
- });
- })
- .catch((err) => console.log(err));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement