Updated /message/get_time to pass client api testing
This commit is contained in:
@@ -157,7 +157,7 @@ impl Message {
|
||||
|
||||
pub async fn get_time_range(p: &Pool, channel_id: UBigInt, start: BigInt, end: BigInt) -> Result<Response<Self>, SqlError> {
|
||||
let conn = p.get_conn().await?;
|
||||
let q = "SELECT id, time, content, author_id WHERE channel_id = :channel AND time >= :start AND time < :end";
|
||||
let q = "SELECT id, time, content, author_id FROM messages WHERE channel_id = :channel AND time >= :start AND time < :end";
|
||||
|
||||
let select_result = conn.prep_exec(
|
||||
q, params!{
|
||||
|
||||
Reference in New Issue
Block a user