You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I went through and changed all instances of .done to .exec as described in #5.
When running the sailng app and entering messages, the following error appears in the node console, but everything appears to still operate correctly (messages appear on all connected clients).
error: Invalid usage of userpublishAdd(id, alias, isAdded, [socketToOmit])``
Any ideas what this is about?
The text was updated successfully, but these errors were encountered:
This definitely has to do with the afterCreate method in Message,js model.
That call basically adds the associated user to the message model that gets sent to the frontend so that the username can be displayed immediately upon a message creation.
I went through and changed all instances of
.done
to.exec
as described in #5.When running the sailng app and entering messages, the following error appears in the node console, but everything appears to still operate correctly (messages appear on all connected clients).
error: Invalid usage of user
publishAdd(id, alias, isAdded, [socketToOmit])``Any ideas what this is about?
The text was updated successfully, but these errors were encountered: