DB tweaks and fix

This commit is contained in:
kexkey
2019-03-04 18:37:22 -05:00
committed by kexkey
parent a50a2089b3
commit 4a72c18937
3 changed files with 7 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ unwatchpub32request() {
local returncode
trace "[unwatchpub32request] Unwatch pub32 ${pub32}"
id=$(sql "SELECT id FROM watching WHERE pub32='${pub32}'")
id=$(sql "SELECT id FROM watching_by_pub32 WHERE pub32='${pub32}'")
trace "[unwatchpub32request] id: ${id}"
sql "UPDATE watching_by_pub32 SET watching=0 WHERE id=${id}"