-
-
Notifications
You must be signed in to change notification settings - Fork 374
Uninstall job doesn't work #427
Comments
Thanks... fixing... |
Please give v11.2.0 a go, seems to solve it. |
@osiset |
I think the AppUninstalledJob should extend \Osiset\ShopifyApp\Messaging\Jobs\AppUninstalledJob rather than \Osiset\ShopifyApp\Jobs\AppUninstalledJob. I think that's a typo in: |
After fixing the above AppUninstallJob path, I'm getting this error: production.ERROR: Too few arguments to function App\Jobs\AppUninstalledJob::__construct(), 2 passed in /var/www/html/shopifyapp/vendor/laravel/framework/src/Illuminate/Foundation/Bus/Dispatchable.php on line 16 and exactly 3 expected {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Too few arguments to function App\Jobs\AppUninstalledJob::__construct(), 2 passed in /var/www/html/shopifyapp/vendor/laravel/framework/src/Illuminate/Foundation/Bus/Dispatchable.php on line 16 and exactly 3 expected at /var/www/html/shopifyapp/app/Jobs/AppUninstalledJob.php:20) It looks like and error here: The uninstall job is expecting a third parameter - callable $cancelCurrentPlanAction which is not provided. |
@danbergan Thanks, will try to resolve this. |
Solved, will release shortly. |
The issue is still reproducing with the next setup:
|
Expected Behavior
When removing app from Shopify store, the uninstalled job is called and sets
deleted_at
in theusers
table.Current Behavior
Shopify app uninstall job is called, but errors with:
Failure Information
The job file setup by
php artisan vendor:publish --tag=shopify-jobs
is also wrong. My job class is as follows:Steps to Reproduce
deleted_at
not setContext
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
See above.
The text was updated successfully, but these errors were encountered: