Skip to content

Commit 77a3ca6

Browse files
authored
Change to actual function names to support MariaDB
1 parent f973285 commit 77a3ca6

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)