Skip to content

Commit

Permalink
api(client): allow setting empty server description
Browse files Browse the repository at this point in the history
  • Loading branch information
drylian authored Apr 17, 2024
1 parent b14e7ee commit 2ff27b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(
public function rename(RenameServerRequest $request, Server $server): JsonResponse
{
$name = $request->input('name');
$description = $request->input('description') ?? $server->description;
$description = $request->has('description') ? (string) $request->input('description') : $server->description;
$this->repository->update($server->id, [
'name' => $name,
'description' => $description,
Expand Down

0 comments on commit 2ff27b9

Please sign in to comment.