Always send push notifications in recipients language (#11307)

* Load data needed for members when inviting to quest

* Always send push notifications in recipients language. Fixes #8718

* Remove console.log
This commit is contained in:
Phillip Thelen
2019-08-15 17:00:46 +02:00
committed by Sabe Jones
parent 14106ec5bf
commit 04420aa60e
5 changed files with 11 additions and 13 deletions

View File

@@ -346,7 +346,7 @@ schema.methods.closeChal = async function closeChal (broken = {}) {
sendPushNotification(savedWinner,
{
title: challenge.name,
message: shared.i18n.t('wonChallenge'),
message: shared.i18n.t('wonChallenge', savedWinner.preferences.language),
identifier: 'wonChallenge',
});
}