You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cba66ad
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -142,7 +139,7 @@ class HttpSmsApiService(private val apiKey: String, private val baseURL: URI) {
142
139
{
143
140
"event_name": "$event",
144
141
"reason": $reasonString,
145
-
"timestamp": "$timestampString"
142
+
"timestamp": "$timestamp"
146
143
}
147
144
""".trimIndent()
148
145
@@ -157,11 +154,12 @@ class HttpSmsApiService(private val apiKey: String, private val baseURL: URI) {
157
154
if (!response.isSuccessful) {
158
155
Timber.e("error response [${response.body?.string()}] with code [${response.code}] while sending [${event}] event [${body}] for message with ID [${messageId}]")
159
156
response.close()
160
-
return
157
+
returnfalse
161
158
}
162
159
163
160
response.close()
164
161
Timber.i( "[$event] event sent successfully for message with ID [$messageId]" )
0 commit comments