Skip to content

Commit

Permalink
Fix redirect. Create associations table.
Browse files Browse the repository at this point in the history
  • Loading branch information
geneotech committed Jun 3, 2024
1 parent a56c152 commit 4b346a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = function(passport) {
users[req.user.id] = data;
}
saveUsers(users);
res.redirect('/');
res.redirect('/profile');
}
);

Expand Down

0 comments on commit 4b346a9

Please sign in to comment.