fix inner join for watch quests
This commit is contained in:
parent
cced08f653
commit
e317097a6a
1 changed files with 1 additions and 2 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue