Skip to content

Commit 04e8f44

Browse files
committed
Merge branch '#469' into development
2 parents 0e7d3e3 + 7a3e63f commit 04e8f44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routes/api/internal/cron.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = function (app) {
88
const TopicVote = models.TopicVote;
99
const emailLib = app.get('email');
1010
const cryptoLib = app.get('cryptoLib');
11-
const topicLib = require('../topic')(app);
11+
const voteService = require('../../../services/vote')(app);
1212
const moment = require('moment');
1313

1414
const getTopicMembers = async (voteId) => {
@@ -104,7 +104,7 @@ module.exports = function (app) {
104104

105105
votes.forEach(async vote => {
106106
const users = await getTopicMembers(vote.id);
107-
const voteResult = await topicLib.getVoteResults(vote.id);
107+
const voteResult = await voteService.getVoteResults(vote.id);
108108
vote.votersCount = 0;
109109
if (voteResult.length) {
110110
vote.votersCount = voteResult[0].votersCount;

0 commit comments

Comments
 (0)