khanegi admin changes
This commit is contained in:
@@ -5,7 +5,6 @@ namespace App\Http\Controllers\Admin;
|
||||
use App\DB\Te\TableEngine;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\PriceSyncLog;
|
||||
use App\Services\ConfigService;
|
||||
use App\Services\ProductPriceSyncService;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
@@ -30,12 +29,8 @@ class PriceSyncLogController extends Controller
|
||||
return response()->json($log);
|
||||
}
|
||||
|
||||
public function runSync(ProductPriceSyncService $syncService, ConfigService $configService)
|
||||
public function runSync(ProductPriceSyncService $syncService)
|
||||
{
|
||||
if (! $configService->isStore()) {
|
||||
return response()->json(['message' => 'فقط در حالت فروشگاه'], 422);
|
||||
}
|
||||
|
||||
$syncService->syncStorePrices(true);
|
||||
|
||||
$log = PriceSyncLog::with('items')->orderByDesc('id')->first();
|
||||
|
||||
Reference in New Issue
Block a user