mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 07:58:55 +00:00
Fix fetch commit details condition
This commit is contained in:
parent
0111f25ef5
commit
dfd686436a
1 changed files with 2 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ $redeployVcs = function (Request $request, Document $function, Document $project
|
|||
$branchUrl = "https://github.com/$owner/$repositoryName/tree/$providerBranch";
|
||||
|
||||
$commitDetails = [];
|
||||
if (!$template->isEmpty()) {
|
||||
if ($template->isEmpty()) {
|
||||
try {
|
||||
$commitDetails = $github->getLatestCommit($owner, $repositoryName, $providerBranch);
|
||||
} catch (\Throwable $error) {
|
||||
|
|
@ -107,8 +107,7 @@ $redeployVcs = function (Request $request, Document $function, Document $project
|
|||
'search' => implode(' ', [$deploymentId, $entrypoint]),
|
||||
'activate' => true,
|
||||
]));
|
||||
var_dump($deployment);
|
||||
|
||||
|
||||
$projectId = $project->getId();
|
||||
$functionId = $function->getId();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue