commit
This commit is contained in:
parent
03c833d26b
commit
94b3133bc4
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
const mysql = require('mysql');
|
const mysql = require('mysql');
|
||||||
|
|
||||||
const connection = mysql.createConnection({
|
const connection = mysql.createConnection({
|
||||||
host: "localhost",
|
host: "172.18.0.4",
|
||||||
user: "root",
|
user: "root",
|
||||||
password: process.env.MYSQL,
|
password: process.env.MYSQL,
|
||||||
database: "discord"
|
database: "discord"
|
||||||
|
@ -13,6 +13,7 @@ function addUserToDb(id, user) {
|
||||||
if (error) {
|
if (error) {
|
||||||
reject(error);
|
reject(error);
|
||||||
} else {
|
} else {
|
||||||
|
console.log('User added to database');
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue