fix inner join for watch quests

This commit is contained in:
Joe Ardent 2023-12-26 15:22:10 -08:00
parent cced08f653
commit e317097a6a
1 changed files with 1 additions and 2 deletions

View File

@ -17,8 +17,7 @@ use crate::{
// Constants // Constants
//-************************************************************************ //-************************************************************************
const GET_SAVED_WATCHES_QUERY: &str = const GET_SAVED_WATCHES_QUERY: &str = "select * from watches inner join watch_quests quests on quests.user = $1 and quests.watch = watches.id";
"select * from watches inner join watch_quests on $1 = watch_quests.user and watches.id = watch_quests.watch order by rand()";
const GET_WATCH_QUERY: &str = "select * from watches where id = $1"; const GET_WATCH_QUERY: &str = "select * from watches where id = $1";