Skip to content

Commit

Permalink
fix(setup): do not disable updates on refresh-tokens route
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Apr 27, 2020
1 parent b8217d0 commit b983a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ recursiveReadDir(routesDir).filter(filepath => filepath.endsWith('.js')).forEach
router[method](filename, (req, res) => {
// setup ecomAuth client with Firestore instance
process.env.ECOM_AUTH_DEBUG = 'true'
setup(null, true, admin.firestore()).then(appSdk => {
setup(null, filename.indexOf('refresh-tokens') === -1, admin.firestore()).then(appSdk => {
middleware({ appSdk, admin }, req, res)
}).catch(err => {
console.error(err)
Expand Down

0 comments on commit b983a45

Please sign in to comment.