Updated /message/get_time to pass client api testing

This commit is contained in:
shockrah
2021-01-18 23:28:32 -08:00
parent c89c2a4469
commit 5c4bc6f96f
2 changed files with 20 additions and 16 deletions

View File

@@ -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!{