Merge pull request #3256 from pterodactyl/lancepioch-patch-1
Change to actual function names to support MariaDB
This commit is contained in:
commit
af3fb14254
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class ServerDetailsController extends Controller
|
||||||
/** @var \Pterodactyl\Models\Server[] $servers */
|
/** @var \Pterodactyl\Models\Server[] $servers */
|
||||||
$servers = Server::query()
|
$servers = Server::query()
|
||||||
->select('servers.*')
|
->select('servers.*')
|
||||||
->selectRaw('started.metadata->>"$.backup_uuid" as backup_uuid')
|
->selectRaw('JSON_UNQUOTE(JSON_EXTRACT(started.metadata, "$.backup_uuid")) as backup_uuid')
|
||||||
->leftJoinSub(function (Builder $builder) {
|
->leftJoinSub(function (Builder $builder) {
|
||||||
$builder->select('*')->from('audit_logs')
|
$builder->select('*')->from('audit_logs')
|
||||||
->where('action', AuditLog::SERVER__BACKUP_RESTORE_STARTED)
|
->where('action', AuditLog::SERVER__BACKUP_RESTORE_STARTED)
|
||||||
|
|
Loading…
Reference in a new issue