diff --git a/shopify_integration/shopify_integration/doctype/shopify_settings/shopify_settings.py b/shopify_integration/shopify_integration/doctype/shopify_settings/shopify_settings.py index 1920c4d..63620ac 100644 --- a/shopify_integration/shopify_integration/doctype/shopify_settings/shopify_settings.py +++ b/shopify_integration/shopify_integration/doctype/shopify_settings/shopify_settings.py @@ -52,6 +52,8 @@ def validate(self): self.update_webhooks() def get_shopify_access_token(self): + from shopify_integration.oauth import DEFAULT_TOKEN_USER + if self.app_type not in ("Custom (OAuth)", "Public"): return @@ -60,7 +62,7 @@ def get_shopify_access_token(self): ) token_cache: Optional["TokenCache"] = connected_app.get_token_cache( - frappe.session.user + DEFAULT_TOKEN_USER, ) if token_cache: