Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AppUninstalledJob.php #229

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andreybutov
Copy link

null guard against an invalid shop on uninstall

We had a situation in dev where Shopify sent a bunch of uninstall webhook requests in bursts. This resulted in a state where the $shop returned from getByDomain(...) was null, resulting in an error being thrown. This is a simple guard against that null. I'm not super familiar with the package, so if there's cleanup to be done before returning, or if there's a better way to handle this, by all means.

null guard against an invalid shop on uninstall
@Kyon147
Copy link
Owner

Kyon147 commented Nov 7, 2023

Thanks for the PR - i'll take a look this week.

@Kyon147
Copy link
Owner

Kyon147 commented Dec 6, 2023

@andreybutov there are some failing checks - can you take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants