Skip to content

Commit

Permalink
Fixed issue with reportissue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Jun 18, 2024
1 parent 3bd2ed3 commit d27786e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions internalsdk/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ func NewClient(baseURL string, opts *webclient.Opts) AuthClient {
req.SetHeader(common.ContentType, "application/x-protobuf")
headers := map[string]string{}
uc := opts.UserConfig()
log.Debugf("RawRequest is %v", req.URL)
log.Debugf("RawRequest is %+v", req)
if req.URL != "" && strings.HasPrefix(req.URL, "/users/signup") {
// for the /users/signup endpoint, we do need to pass all default headers
headers[common.DeviceIdHeader] = uc.GetDeviceID()
Expand Down
2 changes: 1 addition & 1 deletion internalsdk/session_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ func cacheUserDetail(session *SessionModel, userDetail *protos.User) error {
func reportIssue(session *SessionModel, email string, issue string, description string) error {
// Check if email is there is yes then store it
if email != "" {
return pathdb.Mutate(session.db, func(tx pathdb.TX) error {
pathdb.Mutate(session.db, func(tx pathdb.TX) error {
return pathdb.Put(tx, pathEmailAddress, email, "")
})
}
Expand Down

0 comments on commit d27786e

Please sign in to comment.