Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added: Promise return type for req.session.save() function #701

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Added: Promise return type for req.session.save() function #701

wants to merge 5 commits into from

Commits on Oct 11, 2019

  1. Add setPromise to this.req.sessionStore

    Add Promise type object for use as Promise return in req.session.save()
    NrI3 authored Oct 11, 2019
    Configuration menu
    Copy the full SHA
    0546c11 View commit details
    Browse the repository at this point in the history
  2. Add Promise return to req.session.save()

    Now we can use req.session.save() function as promise example
    
    await req.session.save()
        .then(()=>{
            console.log('saved')
        })
        .catch(()=>{
            console.log('error')
        })
    NrI3 authored Oct 11, 2019
    Configuration menu
    Copy the full SHA
    0a27782 View commit details
    Browse the repository at this point in the history
  3. Update session.js

    NrI3 authored Oct 11, 2019
    Configuration menu
    Copy the full SHA
    8147b3e View commit details
    Browse the repository at this point in the history
  4. Update index.js

    NrI3 authored Oct 11, 2019
    Configuration menu
    Copy the full SHA
    580e0bd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1e4760f View commit details
    Browse the repository at this point in the history