@@ 155-159 (lines=5) @@ | ||
152 | return $response->withJson($validateResponse, 400); |
|
153 | } |
|
154 | ||
155 | if (is_null($this->findTheOwner($args, $request, $response)->first())) { |
|
156 | return $response->withJson([ |
|
157 | 'message' => 'Emoji cannot be updated because you are not the creator', |
|
158 | ], 401); |
|
159 | } |
|
160 | ||
161 | return $this->runUpdateEmoji($emoji, $response, $updateParams); |
|
162 | } |
|
@@ 212-216 (lines=5) @@ | ||
209 | return $response->withJson($validateResponse, 400); |
|
210 | } |
|
211 | ||
212 | if (is_null($this->findTheOwner($args, $request, $response)->first())) { |
|
213 | return $response->withJson([ |
|
214 | 'message' => 'Emoji cannot be updated because you are not the creator', |
|
215 | ], 401); |
|
216 | } |
|
217 | ||
218 | $emoji->name = $upateParams['name']; |
|
219 | $emoji->updated_at = date('Y-m-d h:i:s'); |