artistro08/printfulapi

Automatically sync after product save

Closed this issue · 1 comments

Using the artisan command, automatically sync the product. example code

public function onImport()
    {
      try {
            traceLog('init task...');
            Artisan::call('acme:import');
            traceLog('done ...');
        } catch (Exception $e) {
            Response::make($e->getMessage(), 500);
        }
    }

done, fixed by 324b681