Skip to content

Commit

Permalink
Merge pull request #42 from partio-scout/fix/groupList-accept-tasks
Browse files Browse the repository at this point in the history
Refactoring for fixing a bug
  • Loading branch information
linneamyl authored Jun 8, 2022
2 parents df5fdc0 + b586031 commit 3d67bf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const main = async () => {
async (req, res) => {
try {
// Get user ids from req.body
const userIds = req.body.userIds
const userIds = req.body
// Mark the task as completed for all the users
const promises = userIds.map((user_guid) =>
Promise.resolve(
Expand Down
2 changes: 1 addition & 1 deletion src/taskGroups.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app.post(
isGroupLeader,
async (req, res) => {
try {
const userIds = req.body.userIds
const userIds = req.body
const promises = userIds.map((user_guid) =>
Promise.resolve(
postTaskGroupEntry({
Expand Down

0 comments on commit 3d67bf1

Please sign in to comment.