Users: Add ability to search by shortcode

This commit is contained in:
veselcraft 2022-03-27 16:18:51 +03:00
parent 61a2c44e22
commit dae42b0179
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -39,7 +39,7 @@ class Users
function find(string $query): Util\EntityStream
{
$query = "%$query%";
$result = $this->users->where("CONCAT_WS(' ', first_name, last_name, pseudo) LIKE ?", $query)->where("deleted", 0);
$result = $this->users->where("CONCAT_WS(' ', first_name, last_name, pseudo, shortcode) LIKE ?", $query)->where("deleted", 0);
return new Util\EntityStream("User", $result);
}