up
This commit is contained in:
@@ -119,7 +119,13 @@ class ConversationStateService
|
||||
*/
|
||||
public function clearState(string $phoneNumber): bool
|
||||
{
|
||||
return $this->db->delete('user_states', 'phone_number = :phone', ['phone' => $phoneNumber]);
|
||||
try {
|
||||
$this->db->delete('user_states', 'phone_number = :phone', ['phone' => $phoneNumber]);
|
||||
return true;
|
||||
} catch (Exception $e) {
|
||||
error_log('[ConversationStateService] clearState failed: ' . $e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user