Skip to content

Commit

Permalink
chore: set log for authentication route
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis committed Jan 15, 2024
1 parent bcb8d5a commit bc46def
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions functions/routes/bling/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports.post = ({ appSdk, admin }, req, res) => {
console.log('>> POST BLING')
const { body, query } = req
const { state, code } = query
console.log('Query', JSON.stringify(query))
const storeId = parseInt(query.storeId, 10)
console.log('>> Store: ', storeId, ' code: ', code, 'aplicativo', state, '<<')
if (storeId > 100 && code) {
Expand Down Expand Up @@ -54,8 +55,9 @@ exports.get = ({ appSdk, admin }, req, res) => {
console.log('>> POST BLING')
const { body, query } = req
const { state, code } = query
const storeId = parseInt(state, 10)
console.log('>> Store: ', storeId, ' code: ', code, ' <<')
console.log('Query', JSON.stringify(query))
const storeId = parseInt(query.storeId, 10)
console.log('>> Store: ', storeId, ' code: ', code, 'aplicativo', state, '<<')
if (storeId > 100 && code) {
return appSdk.getAuth(storeId)
.then(async (auth) => {
Expand Down

0 comments on commit bc46def

Please sign in to comment.