Fix typo in registration registration query

merge-requests/8/head
knotteye 2020-06-26 04:52:48 -05:00
parent 4fb1126c9f
commit 717d63917c
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ async function addUser(name: string, password: string){
if(dupe[0]) return false;
await query('INSERT INTO users (username, password_hash, stream_key, record_flag) VALUES ('+raw.escape(name)+', '+raw.escape(hash)+', '+raw.escape(key)+', 0)');
await query('INSERT INTO user_meta (username, title, about, live) VALUES ('+raw.escape(name)+',\'\',\'\',false)');
await query('INSERT INTO chat_integration (username, irc, xmpp, twitch, discord) VALUES ('+raw.escape(name)+',\'\',\'\',\'\')');
await query('INSERT INTO chat_integration (username, irc, xmpp, twitch, discord) VALUES ('+raw.escape(name)+',\'\',\'\',\'\',\'\')');
return true;
}