mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
19 lines
495 B
PHP
19 lines
495 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Actions\Servers;
|
|
|
|
use Pterodactyl\Contracts\Servers\DetachesMountsFromServers;
|
|
use Pterodactyl\Models\Mount;
|
|
use Pterodactyl\Models\MountServer;
|
|
use Pterodactyl\Models\Server;
|
|
|
|
final readonly class DetachMountFromServer implements DetachesMountsFromServers
|
|
{
|
|
public function detach(Server $server, Mount $mount): void
|
|
{
|
|
MountServer::query()->where('mount_id', $mount->id)->where('server_id', $server->id)->delete();
|
|
}
|
|
}
|