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 data show with empty result #17

Open
Aravindaful opened this issue Jul 27, 2018 · 1 comment
Open

server data show with empty result #17

Aravindaful opened this issue Jul 27, 2018 · 1 comment

Comments

@Aravindaful
Copy link

Aravindaful commented Jul 27, 2018

I used this url http://localhost:8090/api/threads .
it shows {"participants":[],"messages":[],"threads":[]}

again I tried http://localhost:8090/api/threads/1
then it shows Cannot GET /api/threads/1

when after clone the project and try to npm run api-server it shows compile time errors

Argument of type 'string | string[]' is not assignable to parameter of type 'string'.

errors are in all the .ts files in server/api

every participantId places it shows errors. I fixed them by using
const participantId = parseInt(req.headers['userid'] as string); to all the places

but data not retrieving when call to api/threads or api/threads/1
please help me.

@Aravindaful
Copy link
Author

@jhades , are you there???

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

1 participant