From: Christian Weiske Date: Sun, 26 Jan 2020 10:13:47 +0000 (+0100) Subject: use product type if set to support consumables and subscriptions X-Git-Tag: v1.0.0~3 X-Git-Url: https://git.cweiske.de/stouyapi.git/commitdiff_plain/f19759be619ef2263f7724572ddfde14da47ab9a?hp=3e440a09f7a57ac741d9ab8e0f8c57a8ecd629a7 use product type if set to support consumables and subscriptions --- diff --git a/bin/import-game-data.php b/bin/import-game-data.php index 2607733..0227b45 100755 --- a/bin/import-game-data.php +++ b/bin/import-game-data.php @@ -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 ?? '',