mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 01:22:30 +01:00
Change to actual function names to support MariaDB
This commit is contained in:
parent
f973285e04
commit
77a3ca682f
@ -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 New Issue
Block a user