File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments