* Correct codes in job and compile module.

This commit is contained in:
dingguodong
2021-10-29 17:33:13 +08:00
parent f3b6a38403
commit ff55234a7b
3 changed files with 6 additions and 5 deletions

View File

@@ -134,7 +134,7 @@ class compileModel extends model
if($job->triggerType == 'tag')
{
$lastTag = $this->getLastTagByRepo($repo);
$lastTag = $this->loadModel('job')->getLastTagByRepo($repo);
if($lastTag)
{
$job->lastTag = $lastTag;