Skip to content

Commit 8990307

Browse files
committed
Delay the dispatch of GenerateUniqueShopKeyJob by 1 minute in CreateSellerController to improve job processing timing
1 parent b8e4adb commit 8990307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Seller/CreateSellerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function create(Request $request){
6161
Log::info('PaymentProcessingJob: Payment complete',[
6262
'cat'=>$request->categories
6363
]);
64-
GenerateUniqueShopKeyJob::dispatch($shop->id);
64+
GenerateUniqueShopKeyJob::dispatch($shop->id)->delay(now()->addMinutes(1));
6565
//$urlShop=$this->getUrlSyncAccount();
6666
//$accountId=(new CreateAccountSyncService())->createSyncAccount(
6767
//$request->shop_name,

0 commit comments

Comments
 (0)