Merge pull request #9810 from appwrite/fix-chunk-reading-realtime

Fix logic of chunk reading
This commit is contained in:
Eldad A. Fux 2025-05-19 03:39:16 +01:00 committed by GitHub
commit e7c9b3d900
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -738,11 +738,12 @@ class Builds extends Action
$insideSeparation = true;
}
} else {
$logs = '';
$separator = \strpos($logs, '{APPWRITE_DETECTION_SEPARATOR_END}');
if ($separator !== false) {
$logs = \substr($logs, $separator + strlen('{APPWRITE_DETECTION_SEPARATOR_END}'));
$insideSeparation = false;
} else {
$logs = '';
}
}