Skip to content

Commit af3fb14

Browse files
authored
Merge pull request pterodactyl#3256 from pterodactyl/lancepioch-patch-1
Change to actual function names to support MariaDB
2 parents e2e62b2 + ea7b0a1 commit af3fb14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Api/Remote/Servers/ServerDetailsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function resetState(Request $request)
111111
/** @var \Pterodactyl\Models\Server[] $servers */
112112
$servers = Server::query()
113113
->select('servers.*')
114-
->selectRaw('started.metadata->>"$.backup_uuid" as backup_uuid')
114+
->selectRaw('JSON_UNQUOTE(JSON_EXTRACT(started.metadata, "$.backup_uuid")) as backup_uuid')
115115
->leftJoinSub(function (Builder $builder) {
116116
$builder->select('*')->from('audit_logs')
117117
->where('action', AuditLog::SERVER__BACKUP_RESTORE_STARTED)

0 commit comments

Comments
 (0)