Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server return empty data #10

Open
tommythongnguyen opened this issue Aug 26, 2017 · 2 comments
Open

Server return empty data #10

tommythongnguyen opened this issue Aug 26, 2017 · 2 comments

Comments

@tommythongnguyen
Copy link

Hi All
i purchased your course and follow the tutorial
Finally i get the server up and run at port : 8090
hit web browser with url : http://localhost:8090/api/threads .
---> {
participants: [ ],
messages: [ ],
threads: [ ]
}
what the heck?
read through your findDbThreadsPerUser.ts . --> it need to be passed with the participantId which is not in this case since we try to get all data for the app in the first time loading.
so what is your main ideal behind the scene?
Please advice me
Tommy

@yehe01
Copy link

yehe01 commented Sep 20, 2017

You cannot just hit browser with the url http://localhost:8090/api/threads.
You need to pass userId to the backend.

Checkout this line of code:
this.http.patch(`/api/threads/${threadId}`, {read: true}, commonHttpHeaders(newStoreState.userId))

@Aravindaful
Copy link

@tommythongnguyen, did you fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants