1
0
Fork 0
mirror of synced 2024-09-28 15:31:43 +12:00

Merge pull request #8640 from appwrite/fix-vcs-deployment-size

Fix: vcs deployment size
This commit is contained in:
Christy Jacob 2024-09-10 14:37:59 +04:00 committed by GitHub
commit d82572acbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -411,7 +411,9 @@ class Builds extends Action
Console::execute('rm -rf ' . \escapeshellarg($tmpPath), '', $stdout, $stderr);
$build = $dbForProject->updateDocument('builds', $build->getId(), $build->setAttribute('source', $source));
$deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment->setAttribute('path', $source));
$directorySize = $deviceForFunctions->getFileSize($source);
$deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment->setAttribute('path', $source)->setAttribute('size', $directorySize));
$this->runGitAction('processing', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole);
}