mirror of https://github.com/calzoneman/sync.git
dev is now in final testing stages
This commit is contained in:
parent
8b3ae3b546
commit
1acf27d867
16
database.js
16
database.js
|
@ -81,8 +81,6 @@ Database.prototype.init = function () {
|
||||||
self.query(query, function (err, res) {
|
self.query(query, function (err, res) {
|
||||||
if(err) {
|
if(err) {
|
||||||
Logger.errlog.log("! Failed to create channels table");
|
Logger.errlog.log("! Failed to create channels table");
|
||||||
} else {
|
|
||||||
console.log("Created channels table");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -103,8 +101,6 @@ Database.prototype.init = function () {
|
||||||
self.query(query, function (err, res) {
|
self.query(query, function (err, res) {
|
||||||
if(err) {
|
if(err) {
|
||||||
Logger.errlog.log("! Failed to create registration table");
|
Logger.errlog.log("! Failed to create registration table");
|
||||||
} else if(self.cfg["debug"]) {
|
|
||||||
console.log("Created registrations table");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -118,8 +114,6 @@ Database.prototype.init = function () {
|
||||||
self.query(query, function (err, res) {
|
self.query(query, function (err, res) {
|
||||||
if(err) {
|
if(err) {
|
||||||
Logger.errlog.log("! Failed to create global ban table");
|
Logger.errlog.log("! Failed to create global ban table");
|
||||||
} else if(self.cfg["debug"]) {
|
|
||||||
console.log("Created global ban table");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -136,8 +130,6 @@ Database.prototype.init = function () {
|
||||||
self.query(query, function (err, res) {
|
self.query(query, function (err, res) {
|
||||||
if(err) {
|
if(err) {
|
||||||
Logger.errlog.log("! Failed to create password reset table");
|
Logger.errlog.log("! Failed to create password reset table");
|
||||||
} else if(self.cfg["debug"]) {
|
|
||||||
console.log("Created password reset table");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -154,8 +146,6 @@ Database.prototype.init = function () {
|
||||||
self.query(query, function (err, res) {
|
self.query(query, function (err, res) {
|
||||||
if(err) {
|
if(err) {
|
||||||
Logger.errlog.log("! Failed to create user playlist table");
|
Logger.errlog.log("! Failed to create user playlist table");
|
||||||
} else if(self.cfg["debug"]) {
|
|
||||||
console.log("Created user playlist table");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -171,8 +161,6 @@ Database.prototype.init = function () {
|
||||||
self.query(query, function (err, res) {
|
self.query(query, function (err, res) {
|
||||||
if(err) {
|
if(err) {
|
||||||
Logger.errlog.log("! Failed to create user aliases table");
|
Logger.errlog.log("! Failed to create user aliases table");
|
||||||
} else if(self.cfg["debug"]) {
|
|
||||||
console.log("Created user aliases table");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -189,8 +177,6 @@ Database.prototype.init = function () {
|
||||||
self.query(query, function (err, res) {
|
self.query(query, function (err, res) {
|
||||||
if(err) {
|
if(err) {
|
||||||
Logger.errlog.log("! Failed to create action log table");
|
Logger.errlog.log("! Failed to create action log table");
|
||||||
} else if(self.cfg["debug"]) {
|
|
||||||
console.log("Created action log table");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -206,8 +192,6 @@ Database.prototype.init = function () {
|
||||||
self.query(query, function (err, res) {
|
self.query(query, function (err, res) {
|
||||||
if(err) {
|
if(err) {
|
||||||
Logger.errlog.log("! Failed to create stats table");
|
Logger.errlog.log("! Failed to create stats table");
|
||||||
} else if(self.cfg["debug"]) {
|
|
||||||
console.log("Created stats table");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "2.3.3",
|
"version": "2.4.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,7 +6,7 @@ var Logger = require("./logger");
|
||||||
var Channel = require("./channel");
|
var Channel = require("./channel");
|
||||||
var User = require("./user");
|
var User = require("./user");
|
||||||
|
|
||||||
const VERSION = "2.3.3";
|
const VERSION = "2.4.0";
|
||||||
|
|
||||||
function getIP(req) {
|
function getIP(req) {
|
||||||
var raw = req.connection.remoteAddress;
|
var raw = req.connection.remoteAddress;
|
||||||
|
|
Loading…
Reference in New Issue