Menuserver
- Emails should point to the correct server
This commit is contained in:
parent
b057ce1092
commit
f3a4d8ec66
@ -1,6 +1,7 @@
|
|||||||
class FoodObj {
|
class FoodObj {
|
||||||
|
|
||||||
constructor(limit) {
|
constructor(limit) {
|
||||||
|
this.srcURL = 'https://menu.silvrtree.co.uk';
|
||||||
this.limit = limit;
|
this.limit = limit;
|
||||||
this.store = [];
|
this.store = [];
|
||||||
this.soup = {};
|
this.soup = {};
|
||||||
@ -25,7 +26,7 @@ class FoodObj {
|
|||||||
|
|
||||||
add(item) {
|
add(item) {
|
||||||
// console.log('>>', item);
|
// console.log('>>', item);
|
||||||
item.url = `https://menu.silvrtree.co.uk/view/${item.short}`;
|
item.url = `${this.srcURL}/view/${item.short}`;
|
||||||
if (this.types[item.meat] < this.limit) {
|
if (this.types[item.meat] < this.limit) {
|
||||||
this.store.push(item);
|
this.store.push(item);
|
||||||
this.types[item.meat]++;
|
this.types[item.meat]++;
|
||||||
@ -33,7 +34,7 @@ class FoodObj {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addSoup(item) {
|
addSoup(item) {
|
||||||
item.url = `https://menu.silvrtree.co.uk/view/${item.short}`;
|
item.url = `${this.srcURL}/view/${item.short}`;
|
||||||
this.soup = item;
|
this.soup = item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user