Change to actual function names to support MariaDB
This commit is contained in:
parent
f973285e04
commit
77a3ca682f
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class ServerDetailsController extends Controller
|
|||
/** @var \Pterodactyl\Models\Server[] $servers */
|
||||
$servers = Server::query()
|
||||
->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) {
|
||||
$builder->select('*')->from('audit_logs')
|
||||
->where('action', AuditLog::SERVER__BACKUP_RESTORE_STARTED)
|
||||
|
|
Loading…
Reference in a new issue