mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
add all Changes of #4565
This commit is contained in:
@@ -11,7 +11,7 @@ var logging = require('./../logging');
|
||||
var csv = require('express-csv');
|
||||
var utils = require('../utils');
|
||||
var api = module.exports;
|
||||
|
||||
var pushNotify = require('./pushNotifications');
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------
|
||||
@@ -341,6 +341,9 @@ api.selectWinner = function(req, res, next) {
|
||||
{name: 'CHALLENGE_NAME', content: chal.name}
|
||||
]);
|
||||
}
|
||||
|
||||
pushNotify.sendNotify(saved, shared.i18n.t('wonChallenge'), chal.name);
|
||||
|
||||
closeChal(cid, {broken: 'CHALLENGE_CLOSED', winner: saved.profile.name}, cb);
|
||||
}
|
||||
], function(err){
|
||||
|
||||
Reference in New Issue
Block a user