Skip to content

Node.js based forum software built for the modern web

updated upgrade script date

Julian Lamce867aec533e
diff --git a/src/categoryTools.js b/src/categoryTools.js
index f4f94041ae..ee41c85a8a 100644
--- a/src/categoryTools.js
+++ b/src/categoryTools.js
@@ -17,7 +17,6 @@ CategoryTools.privileges = function(cid, uid, callback) {
"+r": function(next) {
var key = 'cid:' + cid + ':privileges:+r';
Groups.exists(key, function(err, exists) {
- console.log(key, exists);
if (exists) {
Groups.isMember(uid, key, next);
} else {
diff --git a/src/controllers/index.js b/src/controllers/index.js
index 0ae2d674e0..0cf3fde55b 100644
--- a/src/controllers/index.js
+++ b/src/controllers/index.js
@@ -60,7 +60,6 @@ Controllers.home = function(req, res, next) {
function canSee(category, next) {
categoryTools.privileges(category.cid, ((req.user) ? req.user.uid || 0 : 0), function(err, privileges) {
- console.log(category.cid, privileges);
next(!err && privileges.read);
});
}
diff --git a/src/upgrade.js b/src/upgrade.js
index 10cc6ccf99..e8c4332a23 100644
--- a/src/upgrade.js
+++ b/src/upgrade.js
@@ -19,7 +19,7 @@ var db = require('./database'),
schemaDate, thisSchemaDate,
// IMPORTANT: REMEMBER TO UPDATE VALUE OF latestSchema
- latestSchema = Date.UTC(2014, 2, 19, 20);
+ latestSchema = Date.UTC(2014, 2, 21);
Upgrade.check = function(callback) {
db.get('schemaDate', function(err, value) {
@@ -335,7 +335,7 @@ Upgrade.upgrade = function(callback) {
}
},
function(next) {
- thisSchemaDate = Date.UTC(2014, 2, 19, 20);
+ thisSchemaDate = Date.UTC(2014, 2, 21);
if (schemaDate < thisSchemaDate) {
db.getObject('group:gid', function(err, mapping) {