Skip to content

Commit f17891f

Browse files
committed
fix universal web notifications "type"
1 parent f97e369 commit f17891f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/common/tcApiHelper.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,14 @@ function* notifyUserViaWeb(message) {
275275
+ ` service to the userId '${userId}' due to his notification settings.`);
276276
continue;
277277
}
278-
notifications.push(_.assign({}, _.pick(message.details, ['contents', 'version']), { userId }));
278+
notifications.push(_.assign(
279+
{},
280+
_.pick(message.details, ['contents', 'version']),
281+
{
282+
userId,
283+
type: message.type,
284+
}
285+
));
279286
}
280287

281288
return notifications;

0 commit comments

Comments
 (0)