mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
Set type in createDuplicateDeployment
This commit is contained in:
parent
0148c3ed77
commit
2610a0cbcd
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ use Utopia\Database\Validator\UID;
|
|||
use Utopia\Platform\Action;
|
||||
use Utopia\Platform\Scope\HTTP;
|
||||
use Utopia\Storage\Device;
|
||||
use Utopia\Swoole\Request;
|
||||
use Utopia\System\System;
|
||||
|
||||
class Create extends Action
|
||||
|
|
@ -56,6 +57,7 @@ class Create extends Action
|
|||
))
|
||||
->param('siteId', '', new UID(), 'Site ID.')
|
||||
->param('deploymentId', '', new UID(), 'Deployment ID.')
|
||||
->inject('request')
|
||||
->inject('response')
|
||||
->inject('project')
|
||||
->inject('dbForProject')
|
||||
|
|
@ -69,6 +71,7 @@ class Create extends Action
|
|||
public function action(
|
||||
string $siteId,
|
||||
string $deploymentId,
|
||||
Request $request,
|
||||
Response $response,
|
||||
Document $project,
|
||||
Database $dbForProject,
|
||||
|
|
@ -127,6 +130,7 @@ class Create extends Action
|
|||
'status' => 'waiting',
|
||||
'buildPath' => '',
|
||||
'buildLogs' => '',
|
||||
'type' => $request->getHeader('x-sdk-language') === 'cli' ? 'cli' : 'manual'
|
||||
]));
|
||||
|
||||
$site = $site
|
||||
|
|
|
|||
Loading…
Reference in a new issue