Move notification email of server created into the event listener

This commit is contained in:
Dane Everitt
2017-01-25 16:37:01 -05:00
parent b8271cf8f6
commit 96e50506a1
3 changed files with 20 additions and 18 deletions

View File

@@ -32,7 +32,6 @@ use Pterodactyl\Models;
use Pterodactyl\Services\UuidService;
use Pterodactyl\Services\DeploymentService;
use Pterodactyl\Exceptions\DisplayException;
use Pterodactyl\Notifications\ServerCreated;
use Pterodactyl\Exceptions\DisplayValidationException;
class ServerRepository
@@ -300,16 +299,6 @@ class ServerRepository
]);
}
// Queue Notification Email
$user->notify((new ServerCreated([
'name' => $server->name,
'memory' => $server->memory,
'node' => $node->name,
'service' => $service->name,
'option' => $option->name,
'uuidShort' => $server->uuidShort,
])));
$client = Models\Node::guzzleRequest($node->id);
$client->request('POST', '/servers', [
'headers' => [