Clarification on failure return value in delete trait method
This commit is contained in:
parent
7334bb287d
commit
42e783ccf1
@ -83,8 +83,8 @@ impl FromDB<Channel, Integer> for Channel {
|
|||||||
//! Deletes channel given UBigInt as the row key
|
//! Deletes channel given UBigInt as the row key
|
||||||
//! @param p -> SqlPool
|
//! @param p -> SqlPool
|
||||||
//! @param id -> UBigInt
|
//! @param id -> UBigInt
|
||||||
//! @return on_success -> Response::Success
|
//! @return on success -> Response::Success
|
||||||
//! @return on_failure -> Response::Other
|
//! @return on server failure -> Response::Other
|
||||||
if let Ok(conn) = p.get_conn().await {
|
if let Ok(conn) = p.get_conn().await {
|
||||||
let q = "DELETE FROM channels WHERE id = :id";
|
let q = "DELETE FROM channels WHERE id = :id";
|
||||||
let result: Result<Conn, SqlError> =
|
let result: Result<Conn, SqlError> =
|
||||||
|
Loading…
Reference in New Issue
Block a user