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

feat: add getSessionStore api #633

Merged
merged 1 commit into from
Jan 17, 2020
Merged

feat: add getSessionStore api #633

merged 1 commit into from
Jan 17, 2020

Conversation

chentsulin
Copy link
Collaborator

Added following API to get the session store that configured by bottender.config.js

const { getSessionStore } = require('bottender');

const sessionStore = getSessionStore();

@codecov-io
Copy link

codecov-io commented Jan 17, 2020

Codecov Report

Merging #633 into release/1.2 will increase coverage by 0.42%.
The diff coverage is 65.78%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release/1.2     #633      +/-   ##
===============================================
+ Coverage        80.66%   81.08%   +0.42%     
===============================================
  Files               99      100       +1     
  Lines             4287     4293       +6     
  Branches          1061     1077      +16     
===============================================
+ Hits              3458     3481      +23     
+ Misses             789      764      -25     
- Partials            40       48       +8
Impacted Files Coverage Δ
packages/bottender/src/types.ts 100% <ø> (ø) ⬆️
packages/bottender/src/index.ts 100% <100%> (ø) ⬆️
...ackages/bottender/src/session/MongoSessionStore.ts 97.29% <100%> (ø) ⬆️
packages/bottender/src/server/Server.ts 10.25% <33.33%> (+1.56%) ⬆️
packages/bottender/src/initializeServer.ts 27.27% <33.33%> (+7.27%) ⬆️
packages/bottender/src/getSessionStore.ts 70% <70%> (ø)
packages/create-bottender-app/src/shared/log.ts 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 562661c...973034a. Read the comment docs.

@chentsulin chentsulin merged commit dbaf4d2 into release/1.2 Jan 17, 2020
@chentsulin chentsulin deleted the get-session-store branch January 17, 2020 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants