-Fix ConnectWise parameters map

-Added error checkign in GetCompanyByName if no companies returned by CW
This commit is contained in:
steven committed 2018-07-07 16:31:45 -06:00
1 parent c6b82d473c
commit 9eabee18ff
2 files changed
+5

No files matched your search

+2
View File
@@ -21,6 +21,8 @@ type Request struct {
//NewRequest is a function which takes the mandatory fields to perform a request to the CW API and returns a pointer to a Request struct
func NewRequest(cw *Site, restAction, method string, body []byte) *Request {
req := Request{CW: cw, RestAction: restAction, Method: method, Body: body}
req.Parameters = make(map[string]string)
return &req
}