use product type if set to support consumables and subscriptions
[stouyapi.git] / bin / import-game-data.php
index 2607733..0227b45 100755 (executable)
@@ -380,7 +380,7 @@ function buildProduct($product)
         return null;
     }
     return [
-        'type'          => 'entitlement',
+        'type'          => $product->type ?? 'entitlement',
         'identifier'    => $product->identifier,
         'name'          => $product->name,
         'description'   => $product->description ?? '',