Skip to content

Commit

Permalink
Merge pull request #915 from bakaphp/fix-delete-company-setting
Browse files Browse the repository at this point in the history
hotfix: delete setting
  • Loading branch information
kaioken authored Feb 9, 2024
2 parents ffddba6 + e12c953 commit ce249ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/GraphQL/Ecosystem/Mutations/Config/ConfigManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
namespace App\GraphQL\Ecosystem\Mutations\Config;

use Kanvas\Apps\Models\Apps;
use Kanvas\Companies\Models\Companies;
use Kanvas\Companies\Repositories\CompaniesRepository;
use Kanvas\Users\Models\Users;
use Kanvas\Users\Repositories\UsersRepository;
use Kanvas\Companies\Repositories\CompaniesRepository;

class ConfigManagement
{
Expand Down Expand Up @@ -44,7 +43,7 @@ public function setCompanySetting(mixed $root, array $request): bool
public function deleteCompanySetting(mixed $root, array $request): bool
{
$companies = CompaniesRepository::getByUuid($request['input']['entity_uuid'], app(Apps::class));
$companies->delete($request['input']['key']);
$companies->del($request['input']['key']);

return true;
}
Expand Down

0 comments on commit ce249ae

Please sign in to comment.