AI 5
This commit is contained in:
parent
ac4606bc6c
commit
8fb82cfec8
@ -31,8 +31,15 @@ WHERE config_key = 'inventory_max_pages'
|
|||||||
|
|
||||||
const maxPages = config ? config.config_value : 8;
|
const maxPages = config ? config.config_value : 8;
|
||||||
|
|
||||||
|
const ownedPages = owned.map((p) => p.page);
|
||||||
|
|
||||||
|
// Seite 1 ist immer kostenlos und gilt als besessen
|
||||||
|
if (!ownedPages.includes(1)) {
|
||||||
|
ownedPages.unshift(1);
|
||||||
|
}
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
ownedPages: owned.map((p) => p.page),
|
ownedPages: ownedPages,
|
||||||
prices: prices,
|
prices: prices,
|
||||||
maxPages: maxPages,
|
maxPages: maxPages,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user