Skip to content

Commit b7a0b67

Browse files
committed
fix: mail mint update contact timeline error issue fixed
1 parent 3c65965 commit b7a0b67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

includes/Actions/MailMint/RecordApiHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ public function execute(
185185
$selectedTags = $integrationDetails->selectedTags;
186186
$selectedSubStatus = $integrationDetails->selectedSubStatus;
187187
$apiResponse = $this->updateContact($selectedList, $selectedTags, $selectedSubStatus, $finalData, $contactExist);
188-
if ($apiResponse && (\gettype($apiResponse) == 'integer' || (\gettype($apiResponse) == 'boolean' && $apiResponse == true))) {
188+
189+
if ($apiResponse && (is_numeric($apiResponse) || (\is_bool($apiResponse) && $apiResponse))) {
189190
LogHandler::save(self::$integrationID, ['type' => 'update', 'type_name' => 'update contact'], 'success', __('Contact updated successfully', 'bit-integrations'));
190191
} else {
191192
LogHandler::save(self::$integrationID, ['type' => 'update', 'type_name' => 'update contact'], 'error', __('Failed to create contact', 'bit-integrations'));

0 commit comments

Comments
 (0)