Skip to content

Commit feb14c0

Browse files
committed
use "of" instead of "in" to be sure
1 parent 20b4d7d commit feb14c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/SurveyService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ async function sendSurveys () {
103103
}
104104

105105
// add contacts
106-
for (const collectorName in collectors) {
106+
for (const collectorName of _.keys(collectors)) {
107107
const collector = collectors[collectorName]
108108
collectors[collectorName].contacts = await upsertContactInSurveyMonkey(collector.contacts)
109109
}
110110

111111
// send surveys
112-
for (const collectorName in collectors) {
112+
for (const collectorName of _.keys(collectors)) {
113113
const collector = collectors[collectorName]
114114
if (collector.contacts.length) {
115115
try {

0 commit comments

Comments
 (0)