Skip to content

Commit

Permalink
NOISSUE - Remove channel id and thing key validation (#60)
Browse files Browse the repository at this point in the history
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.

Signed-off-by: ianmuchyri <[email protected]>
  • Loading branch information
ianmuchyri authored Jan 5, 2024
1 parent 131345c commit 0264291
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ui/api/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,12 +657,6 @@ func (req readMessageReq) validate() error {
if req.token == "" {
return errAuthorization
}
if req.ChanID == "" {
return errMissingChannelID
}
if req.ThingKey == "" {
return errMissingThingKey
}
return nil
}

Expand Down

0 comments on commit 0264291

Please sign in to comment.