git.cweiske.de
/
stouyapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use product type if set to support consumables and subscriptions
[stouyapi.git]
/
bin
/
import-game-data.php
diff --git
a/bin/import-game-data.php
b/bin/import-game-data.php
index 260773383e18d812cb26764d7773d3722dd691b4..0227b459ff3bbfa3bc22c73ef8c6d5d5742e731c 100755
(executable)
--- 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 ?? '',