Skip to content

Commit

Permalink
Merge 99bf963 into 1da4c6e
Browse files Browse the repository at this point in the history
  • Loading branch information
Proladge committed May 9, 2020
2 parents 1da4c6e + 99bf963 commit 08cf132
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "covid19liveupdates",
"version": "3.0.0",
"version": "3.0.1",
"description": "Get latest info about COVID-19 (coronavirus) situation around the world and in your country",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 2 additions & 4 deletions server/src/services/infrastructure/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ export const runSendScheduledNotificationToUsersJob = async (
LogCategory.Scheduler
);
}

for (const user of users) {
message.replace('#UserName#', getUserName(user));
for (const [key, user] of Object.entries(users)) {
messageRegistry.sendUserNotification(
user.settings?.locale,
user.chatId,
message
message.replace('#UserName#', getUserName(user))
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
plugins: [
new CleanWebpackPlugin(),
new CopyPlugin([
{ from: './server/src/locales', to: 'locales' },
{ from: './locales', to: 'locales' },
]),
],
output: {
Expand Down

0 comments on commit 08cf132

Please sign in to comment.