Merge pull request #8408 from appwrite/fix-vsc-deployments-path

fix: Setting `path` for vsc function deployments
This commit is contained in:
Christy Jacob 2024-07-19 01:30:26 +04:00 committed by GitHub
commit 4ce737e914
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -318,6 +318,9 @@ class Builds extends Action
throw new \Exception("Unable to move file");
}
$deployment->setAttribute('path', $path);
$deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment);
Console::execute('rm -rf ' . $tmpPath, '', $stdout, $stderr);
$source = $path;