Trivial change to test out new filtered pipeline

This commit is contained in:
shockrah 2021-02-13 19:00:22 -08:00
parent d2144ef7e9
commit da1b4c3253

View File

@ -40,7 +40,7 @@ impl FromDB<Channel, Integer> for Channel {
if let Ok((_, row)) = result { if let Ok((_, row)) = result {
return match row { return match row {
Some(row) => Response::Row(Channel { Some(row) => Response::Row(Channel {
id: id, id,
name: row.1, name: row.1,
description: row.2, description: row.2,
kind: row.3 kind: row.3
@ -109,8 +109,8 @@ impl FromDB<Channel, Integer> for Channel {
let (id, name, desc, k): (UBigInt, VarChar, Option<VarChar>, Integer) = let (id, name, desc, k): (UBigInt, VarChar, Option<VarChar>, Integer) =
mysql_async::from_row(row); mysql_async::from_row(row);
Channel { Channel {
id: id, id,
name: name, name,
description: desc, description: desc,
kind: k kind: k
} }
@ -177,10 +177,10 @@ impl Channel {
Ok((_, id_opt)) => { Ok((_, id_opt)) => {
if let Some(id) = id_opt { if let Some(id) = id_opt {
Response::Row(Channel { Response::Row(Channel {
id: id, id,
name: name.into(), name: name.into(),
description: Some(desc.into()), description: Some(desc.into()),
kind: kind kind
}) })
} }
else { Response::Empty } else { Response::Empty }