Add username to user

This commit is contained in:
Maksim Eltyshev
2020-04-03 00:35:25 +05:00
parent ec222a5e32
commit af00e3e191
143 changed files with 1051 additions and 420 deletions

View File

@@ -2,7 +2,7 @@ module.exports = {
inputs: {
ids: {
type: 'json',
custom: value => _.isArray(value),
custom: (value) => _.isArray(value),
required: true,
},
user: {
@@ -26,7 +26,7 @@ module.exports = {
.set(inputs.values)
.fetch();
notifications.forEach(notification => {
notifications.forEach((notification) => {
sails.sockets.broadcast(
`user:${notification.userId}`,
'notificationUpdate',