jdesboeufs / connect-mongo

MongoDB session store for Express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MongoStore.get not returning promise without callback is given ?

lemonshumhk01 opened this issue · comments

  • I'm submitting a ...
    [* ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

is MongoStore.get being modified without written in changelog ?

find that existing get logic always process const s = session && this.transformFunctions.unserialize(session.session); with callback. but in MongoStore.d.ts , get function only ask for passing sid as required param only.

but in v3.2.0 , it will return a promise without callback is given

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)