Add 4th price for Alasql queries.

This commit is contained in:
Mario Zechner 2023-07-12 12:35:58 +02:00
parent a738dad8e1
commit e86f988b7a

View File

@ -106,7 +106,7 @@ class Items extends Model {
},
};
for (let i = 1; i < 3; i++) {
for (let i = 1; i <= 3; i++) {
(getters[`price${i}`] = {
get() {
return this.priceHistory[i] ? this.priceHistory[i].price : 0;