diff options
| author | mrw1593 <botahamec@outlook.com> | 2023-05-13 14:22:53 -0400 |
|---|---|---|
| committer | mrw1593 <botahamec@outlook.com> | 2023-05-29 10:45:58 -0400 |
| commit | afe8b4e6e2f1e854d8a97d3f62a4b011eea59130 (patch) | |
| tree | 2ba3d07e133ba791326ba82bef5379d37ee2cb88 /src/services | |
| parent | 65a541fd0b32adc68f3bbbab14145ebf563b7ae1 (diff) | |
Fix bug
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/db.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/services/db.rs b/src/services/db.rs index 6136a89..8f9743a 100644 --- a/src/services/db.rs +++ b/src/services/db.rs @@ -105,7 +105,6 @@ pub async fn search_users<'c>( conn: impl Executor<'c, Database = MySql>, username: &str, ) -> Result<Box<[User]>, RawUnexpected> { - let username = format!("%{username}%"); let records = query_as!( UserRow, r"SELECT id, username, password_hash, password_salt, password_version @@ -128,7 +127,6 @@ pub async fn search_users_limit<'c>( offset: u32, limit: u32, ) -> Result<Box<[User]>, RawUnexpected> { - let username = format!("%{username}%"); let records = query_as!( UserRow, r"SELECT id, username, password_hash, password_salt, password_version |
