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