File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public function update(Redirect $body)
153153
154154 Domainrobot::setLastDomainrobotResult ($ domainrobotResult );
155155
156- return new Contact (ArrayHelper::getValueFromArray ($ domainrobotResult ->getResult (), 'data.0 ' , []));
156+ return new Redirect (ArrayHelper::getValueFromArray ($ domainrobotResult ->getResult (), 'data.0 ' , []));
157157 }
158158
159159 /**
@@ -164,12 +164,12 @@ public function update(Redirect $body)
164164 */
165165 public function updateAsync (Redirect $ body )
166166 {
167- if ($ body ->getId () === null ) {
168- throw new \InvalidArgumentException ("Field Redirect.id is missing. " );
167+ if ($ body ->getSource () === null ) {
168+ throw new \InvalidArgumentException ("Field Redirect.source is missing. " );
169169 }
170170
171171 return $ this ->sendRequest (
172- $ this ->domainrobotConfig ->getUrl () . "/redirect/ " . $ body ->getId (),
172+ $ this ->domainrobotConfig ->getUrl () . "/redirect/ " . $ body ->getSource (),
173173 'PUT ' ,
174174 ["json " => $ body ->toArray ()]
175175 );
You can’t perform that action at this time.
0 commit comments