Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(package): take into account update result when parsing an app
Browse files Browse the repository at this point in the history
count of updates will be more accurate
  • Loading branch information
btry committed Oct 9, 2017
1 parent b5b8b8c commit 6ac7973
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/package.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,11 @@ public static function cronParseApplication(CronTask $crontask) {
$package = new static();
$package->getFromDB($data['id']);
if ($package->parseApplication()) {
$cronStatus++;
$crontask->addVolume(1);
}
}

$cronStatus = 1;
return $cronStatus;
}

Expand Down Expand Up @@ -559,8 +560,7 @@ private function parseApplication() {

$input['id'] = $this->fields['id'];
$input['parse_status'] = 'parsed';
$this->update($input);
return true;
return $this->update($input);
}

/**
Expand Down

0 comments on commit 6ac7973

Please sign in to comment.