added queue to horizon schedule in the kernel for console commands and scheduler

This commit is contained in:
2021-05-19 00:46:22 +09:00
parent c089beae10
commit e949b1d717
5 changed files with 37 additions and 29 deletions
@@ -57,7 +57,11 @@ class ProcessAllianceAssets implements ShouldQueue
* If the asset is not in the database, then let's save it to the database,
* otherwise, we just update the old asset
*/
if(Asset::where(['item_id' => $this->asset->item_id])->count() == 0) {
$count = Asset::where([
'item_id' => $this->asset->item_id,
])->count();
if($count == 0) {
$as = new Asset;
if(isset($this->asset->is_blueprint_copy)) {
$as->is_blueprint_copy = $this->asset->is_blueprint_copy;