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 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 ?? '',