git.cweiske.de
/
stouyapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3e440a0
)
use product type if set to support consumables and subscriptions
author
Christian Weiske
<cweiske@cweiske.de>
Sun, 26 Jan 2020 10:13:47 +0000
(11:13 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Sun, 26 Jan 2020 10:13:47 +0000
(11:13 +0100)
bin/import-game-data.php
patch
|
blob
|
history
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 ?? '',