Add debug information.

This commit is contained in:
James Cole
2020-02-22 11:05:16 +01:00
parent 1d8f34275a
commit 6c163ebef3
10 changed files with 68 additions and 14 deletions

View File

@@ -82,8 +82,8 @@ class AccountSearch implements GenericSearchInterface
$query->orWhere(
static function (Builder $q) use ($originalQuery) {
$json = json_encode($originalQuery, JSON_THROW_ON_ERROR);
$q->where('account_meta.name', 'account_number');
$q->where('account_meta.data', $json);
$q->where('account_meta.name', '=', 'account_number');
$q->where('account_meta.data', 'LIKE', $json);
}
);
break;
@@ -107,7 +107,6 @@ class AccountSearch implements GenericSearchInterface
);
break;
}
return $query->distinct()->get(['accounts.*']);
}