mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-17 05:50:25 +01:00
Compare commits
2 Commits
ajaxify-cr
...
v0.5.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cce076fc83 | ||
|
|
0a73fade08 |
@@ -2,7 +2,7 @@
|
|||||||
"name": "nodebb",
|
"name": "nodebb",
|
||||||
"license": "GPLv3 or later",
|
"license": "GPLv3 or later",
|
||||||
"description": "NodeBB Forum",
|
"description": "NodeBB Forum",
|
||||||
"version": "0.5.3-dev",
|
"version": "0.5.3",
|
||||||
"homepage": "http://www.nodebb.org",
|
"homepage": "http://www.nodebb.org",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ module.exports = function(User) {
|
|||||||
return winston.log('[user/jobs] Did not send daily digests because subscription system is disabled.');
|
return winston.log('[user/jobs] Did not send daily digests because subscription system is disabled.');
|
||||||
}
|
}
|
||||||
|
|
||||||
topics.getLatestTopics(0, 0, 10, 'day', function(err, topics) {
|
topics.getLatestTopics(0, 0, 10, 'day', function(err, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return winston.error('[user/jobs] Could not send daily digests: ' + err.message);
|
return winston.error('[user/jobs] Could not send daily digests: ' + err.message);
|
||||||
}
|
}
|
||||||
@@ -49,7 +49,7 @@ module.exports = function(User) {
|
|||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
sendEmails(subscribed, topics, next);
|
sendEmails(subscribed, data.topics, next);
|
||||||
});
|
});
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user