Skip to content

Commit

Permalink
Await more
Browse files Browse the repository at this point in the history
  • Loading branch information
lperson committed Jun 19, 2020
1 parent b8a1f2f commit b4e60a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/server/api/mutations/updateContactTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ export const updateContactTags = async (
organization,
user
)
.then(handler => {
.then(async handler => {
if (handler) {
// no, no AWAIT. FUTURE: convert to dispatch
handler
await handler
.onTagUpdate(
tags,
campaignContactId,
Expand Down
4 changes: 2 additions & 2 deletions src/server/api/mutations/updateQuestionResponses.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ export const updateQuestionResponses = async (
organization,
user
)
.then(handler => {
.then(async handler => {
if (!handler) {
return questionResponse;
}
handler
await handler
.processAction(
questionResponse,
questionResponseInteractionStep,
Expand Down

0 comments on commit b4e60a6

Please sign in to comment.