diff --git a/app.js b/app.js index f87687e..5982f97 100644 --- a/app.js +++ b/app.js @@ -70,6 +70,13 @@ if (!fs.existsSync(dbPath)) { match_end_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ) `); + + db.run(` + CREATE TABLE IF NOT EXISTS associations ( + steam_id TEXT UNIQUE, + discord_id TEXT UNIQUE + ) + `); }); // Close the database connection diff --git a/src/auth.js b/src/auth.js index 9c3ea23..648f645 100644 --- a/src/auth.js +++ b/src/auth.js @@ -56,7 +56,7 @@ module.exports = function(passport) { users[req.user.id] = data; } saveUsers(users); - res.redirect('/'); + res.redirect('/profile'); } );