From dae42b01793233d155c299c40061c1a4b7f3d3f7 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sun, 27 Mar 2022 16:18:51 +0300 Subject: [PATCH] Users: Add ability to search by shortcode --- Web/Models/Repositories/Users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Models/Repositories/Users.php b/Web/Models/Repositories/Users.php index 66f9f5ae..9cd7d001 100644 --- a/Web/Models/Repositories/Users.php +++ b/Web/Models/Repositories/Users.php @@ -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); }