Commit b5ec20bf authored by Robert Czechowski's avatar Robert Czechowski

Admin interface: Fix bug that makes users without name throw an error in admin search

parent e2791fac
Pipeline #694 failed with stages
in 3 minutes and 38 seconds
......@@ -1279,7 +1279,7 @@ impl MedalConnection for Connection {
Option<String>,
Option<String>,
Option<String>))
-> Result<Vec<(i32, String, String)>, Vec<(i32, String, String)>>
-> Result<Vec<(i32, Option<String>, Option<String>)>, Vec<(i32, String, String)>>
{
if let Some(id) = s_id {
let query = "SELECT id, firstname, lastname
......
......@@ -74,7 +74,7 @@ pub trait MedalConnection {
Option<String>,
Option<String>,
Option<String>))
-> Result<Vec<(i32, String, String)>, Vec<(i32, String, String)>>;
-> Result<Vec<(i32, Option<String>, Option<String>)>, Vec<(i32, String, String)>>;
fn get_debug_information(&self) -> String;
......
......@@ -1391,7 +1391,7 @@ impl MedalConnection for Connection {
Option<String>,
Option<String>,
Option<String>))
-> Result<Vec<(i32, String, String)>, Vec<(i32, String, String)>>
-> Result<Vec<(i32, Option<String>, Option<String>)>, Vec<(i32, String, String)>>
{
if let Some(id) = s_id {
let query = "SELECT id, firstname, lastname
......
......@@ -1391,7 +1391,7 @@ impl MedalConnection for Connection {
Option<String>,
Option<String>,
Option<String>))
-> Result<Vec<(i32, String, String)>, Vec<(i32, String, String)>>
-> Result<Vec<(i32, Option<String>, Option<String>)>, Vec<(i32, String, String)>>
{
if let Some(id) = s_id {
let query = "SELECT id, firstname, lastname
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment