Error on installing app on a store
Closed this issue · 0 comments
abishekrsrikaanth commented
I get the following error during the installation of the app on a store
Could you advice what I may be missing. I seem to have correct entries on the tables.
I tried the following on a test route
$shopUrl = "some-name.myshopify.com"; //exists on the db
$appName = "some-app-name"; //exists on the db
$user = \CultureKings\ShopifyAuth\Models\ShopifyUser::where('shop_url', $shopUrl)->whereHas('shopifyAppUsers', function ($query) use ($appName) {
$query->whereShopifyAppName($appName);
})->get();
dd($user->shopifyAppUsers->count());