absmach / magistrala-ui

UI Repository for Magistrala IoT
9 stars 15 forks source link

NOISSUE - Fix messageRead page not working #60

Closed ianmuchyri closed 8 months ago

ianmuchyri commented 8 months ago

remove channelId and thingKey validation from readmessage api, since they are not required in the request. They will be checked in service.go to request for messages.

What type of PR is this?

What does this do?

fix messageRead page not working, since the variables passed in the request body were not compulsory. This bug was brought about by the validation errors pr, which introduced validation for said variables. This is checked in this code: https://github.com/absmach/magistrala-ui/blob/e814c464c513602c61f13b17fe6a17b91ef41f62/ui/service.go#L1591C2-L1596C3

Which issue(s) does this PR fix/relate to?

NOISSUE

Have you included tests for your changes?

Did you document any new/modified functionality?

Notes