Skip to content

Commit 757ab30

Browse files
committed
connection name (http) revert to original
1 parent b81f155 commit 757ab30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ protected function buildConnection()
142142
{
143143
$type = config('database.connections.elasticsearch.auth_type') ?? null;
144144
$type = strtolower($type);
145-
if (!in_array($type, ['https', 'cloud',])) {
145+
if (!in_array($type, ['http', 'cloud'])) {
146146
throw new RuntimeException('Invalid [auth_type] in database config. Must be: http, cloud or api');
147147
}
148148

149149
return $this->{'_'.$type.'Connection'}();
150150

151151
}
152152

153-
protected function _httpsConnection()
153+
protected function _httpConnection()
154154
{
155155
$hosts = config('database.connections.elasticsearch.hosts') ?? null;
156156
$username = config('database.connections.elasticsearch.username') ?? null;

0 commit comments

Comments
 (0)