use product type if set to support consumables and subscriptions
authorChristian Weiske <cweiske@cweiske.de>
Sun, 26 Jan 2020 10:13:47 +0000 (11:13 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 26 Jan 2020 10:13:47 +0000 (11:13 +0100)
bin/import-game-data.php

index 260773383e18d812cb26764d7773d3722dd691b4..0227b459ff3bbfa3bc22c73ef8c6d5d5742e731c 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 ?? '',