Skip to content

server data show with empty result #17

@Aravindaful

Description

@Aravindaful

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions