* [task#127405,doing,0.1h] add repo sync for gitfox.

This commit is contained in:
caoyanyi
2024-09-10 13:23:33 +08:00
committed by 田淑杰
parent e350f21ec7
commit 05b88cc034
+2
View File
@@ -286,6 +286,7 @@ class repoModel extends model
*/
public function batchCreate(array $repos, int $serviceHost, string $scm): bool
{
$this->loadModel('instance');
foreach($repos as $index => $repo)
{
if(empty($repo->product)) continue;
@@ -319,6 +320,7 @@ class repoModel extends model
}
$this->loadModel('action')->create('repo', $repoID, 'created');
if(method_exists($this->instance, 'saveWaitSyncData')) $this->instance->saveWaitSyncData('repo', $repoID, 'add', false);
}
return true;