mirror of
https://github.com/appwrite/appwrite
synced 2026-05-16 21:48:45 +00:00
Update src/Appwrite/Platform/Modules/Functions/Workers/Builds.php
Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
This commit is contained in:
parent
aa07ba0027
commit
707ef16f79
1 changed files with 1 additions and 1 deletions
|
|
@ -1135,7 +1135,7 @@ class Builds extends Action
|
|||
$branchPrefix = substr($branchName, 0, 16);
|
||||
if (strlen($branchName) > 16) {
|
||||
$remainingChars = substr($branchName, 16);
|
||||
$branchPrefix .= substr(hash('sha256', $remainingChars), 0, 7);
|
||||
$branchPrefix .= '-' . substr(hash('sha256', $remainingChars), 0, 7);
|
||||
}
|
||||
$resourceProjectHash = substr(hash('sha256', $resource->getId() . $project->getId()), 0, 7);
|
||||
$domain = "branch-{$branchPrefix}-{$resourceProjectHash}.{$sitesDomain}";
|
||||
|
|
|
|||
Loading…
Reference in a new issue