Add workaround for migrator error

This commit is contained in:
calzoneman 2015-09-30 22:12:43 -07:00
parent 81cbfc0639
commit 0e66875d27
1 changed files with 4 additions and 0 deletions

View File

@ -556,6 +556,10 @@ module.exports.listStats = function (callback) {
/* Misc */
module.exports.loadAnnouncement = function () {
if (!Server.getServer()) {
return;
}
var query = "SELECT * FROM `meta` WHERE `key`='announcement'";
module.exports.query(query, function (err, rows) {
if (err) {