Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Linnea Myllynen committed Apr 27, 2023
1 parent 744cd23 commit b85e556
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ module.exports.configurePassport = async (clientUrl) => {
},
}
)
console.log('memberData.ageGroupId: ', memberData.ageGroupId)

let ageGroup = 35 //Sudenpennut
if (memberData.ageGroupId !== null) {
ageGroup = memberData.ageGroupId
}

console.log('ageGroupId: ', ageGroup)
scout.canMarkDone = !restrictedAgeGroups.includes(ageGroup)
} catch (error) {
console.log(error.name, error.message)
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const main = async () => {

app.post('/task-entry', isLoggedIn, async (req, res) => {
try {
console.log('Post task entry user: ', req.user)
const data = req.body
const status = data.completion_status
data.user_guid = req.user.membernumber
Expand Down

0 comments on commit b85e556

Please sign in to comment.