Menuserver

- Emails should point to the correct server
This commit is contained in:
Martin Donnelly 2021-08-31 10:00:38 +01:00
parent b057ce1092
commit f3a4d8ec66

View File

@ -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;
}