Clarification on failure return value in delete trait method

This commit is contained in:
shockrah 2021-02-03 23:28:14 -08:00
parent 7334bb287d
commit 42e783ccf1

View File

@ -83,8 +83,8 @@ impl FromDB<Channel, Integer> for Channel {
//! Deletes channel given UBigInt as the row key
//! @param p -> SqlPool
//! @param id -> UBigInt
//! @return on_success -> Response::Success
//! @return on_failure -> Response::Other
//! @return on success -> Response::Success
//! @return on server failure -> Response::Other
if let Ok(conn) = p.get_conn().await {
let q = "DELETE FROM channels WHERE id = :id";
let result: Result<Conn, SqlError> =