fix sql query

This commit is contained in:
Jay 2018-08-20 22:58:34 +08:00
parent 930163aa15
commit 217608d6e4

View File

@ -19,7 +19,7 @@ const typeTwitch = async (c, n) => {
} }
const typeSystem = async (c, n) => { const typeSystem = async (c, n) => {
let text = `select * form "public"."twitch_channel"` let text = `select * from "public"."twitch_channel"`
let values = [c.session.user.id] let values = [c.session.user.id]
let result = await c.db.query({text, values}) let result = await c.db.query({text, values})
c.state.channelList = result.rows c.state.channelList = result.rows