rpaschoal / ng-chat-nodejs

A simple Node.js application that uses ng-chat.
MIT License
10 stars 15 forks source link

Unable to list the users in the chat UI #4

Closed shakthi-manai closed 4 years ago

shakthi-manai commented 4 years ago

Hi , I am using angular 8 UI for the chat window. I am able to fetch the users from the DB at the sever end. But not able to display the users in the chat window. The users are returned as a json object. Does it have to be a particular format that the users have to be returned like the object should be a CHatParticipant object when returned from the server ? not too sure what the issue is. Any help would be appreciated . Currently i get the users in this format: [ { id: 2.914466416433947e+28, userName: 'xxxxxx', teamName: 'testing', fullName: 'xxxxxx', emailId: null, role: 'tester', password: 'xxxxxxx', creationDate: '2020-01-25T06:56:50.651+0000', userSettings: {} } ]