From cc61f38d7c23c12fd9329690d82f3ccf1b7c008a Mon Sep 17 00:00:00 2001 From: Sacha Greif Date: Wed, 21 Nov 2012 12:30:45 +0900 Subject: [PATCH] tweaks --- .meteor/meteorite | 2 +- server/scoring.js | 2 +- server/users.js | 4 ++++ smart.lock | 14 +++++++------- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.meteor/meteorite b/.meteor/meteorite index 68dafc94c..16cf8a262 160000 --- a/.meteor/meteorite +++ b/.meteor/meteorite @@ -1 +1 @@ -Subproject commit 68dafc94c5f1eb6cf2350ee74e9f65130f665bc5 +Subproject commit 16cf8a26218ae4650eb36b25ee55c2b5f6a71a31 diff --git a/server/scoring.js b/server/scoring.js index 2a03e7520..7df9856cc 100644 --- a/server/scoring.js +++ b/server/scoring.js @@ -20,7 +20,7 @@ var updateScore = function (collection, id) { }; Meteor.startup(function () { - var scoreInterval = getSetting("scoreInterval") || 30; + var scoreInterval = getSetting("scoreUpdateInterval") || 30; // recalculate scores every N seconds if(scoreInterval>0){ intervalId=Meteor.setInterval(function () { diff --git a/server/users.js b/server/users.js index 5394a948a..d7834fc19 100644 --- a/server/users.js +++ b/server/users.js @@ -34,5 +34,9 @@ Meteor.methods({ }, numberOfCommentsToday: function(){ console.log(numberOfItemsInPast24Hours(Meteor.user(), Comments)); + }, + testEmail: function(){ + console.log('////////////////email test…'); + Email.send({from: 'info@sachagreif.com', to: 'sacha357@gmail.com', subject: 'mailgun test', text: 'lorem ipsum dolor'}); } }); \ No newline at end of file diff --git a/smart.lock b/smart.lock index 4b28b7d39..69298f85a 100644 --- a/smart.lock +++ b/smart.lock @@ -2,7 +2,7 @@ "meteor": { "git": "https://github.com/meteor/meteor.git", "branch": "master", - "commit": "68dafc94c5f1eb6cf2350ee74e9f65130f665bc5" + "commit": "16cf8a26218ae4650eb36b25ee55c2b5f6a71a31" }, "dependencies": { "basePackages": { @@ -12,18 +12,18 @@ "packages": { "router": { "git": "https://github.com/tmeasday/meteor-router.git", - "tag": "v0.1.1", - "commit": "bb806c51efe3686a8da6628269aa67a269a4e076" + "tag": "v0.2.4", + "commit": "edd0ad39c66a94536859bd322ea13135afebef0b" }, "moment": { "git": "https://github.com/possibilities/meteor-moment.git", "tag": "v1.7.0", "commit": "c64b6ec0e714b9556f4b6643d430b868ba69d3d7" }, - "deps-extensions": { - "git": "https://github.com/tmeasday/meteor-deps-extensions.git", - "tag": "v0.1.0", - "commit": "110462c0ba33aaeb35e55069134287325cc453e5" + "page-js": { + "git": "https://github.com/tmeasday/meteor-page-js.git", + "tag": "v1.3.1", + "commit": "ee0b651869928abe50b5d06d7f32ccd2e657883a" } } }