This commit is contained in:
2021-06-21 15:14:16 +02:00
parent 1949f1522d
commit b58acdc0c9
9 changed files with 5 additions and 216 deletions

View File

@@ -81,6 +81,7 @@ async function createRestaurant(request, oldRestaurant) {
links: request.links,
phone: request.phone,
hidden: request.hidden,
indexed: new Date()
});
return restaurant;
} else {
@@ -107,9 +108,8 @@ async function createRestaurant(request, oldRestaurant) {
links: request.links,
phone: request.phone,
hidden: request.hidden,
subscriptionActive: oldRestaurant.subscriptionActive,
subscriptionDue: oldRestaurant.subscriptionDue,
subscriptionStarted: oldRestaurant.subscriptionStarted,
indexed: request.indexed,
ratings: request.ratings
});
return restaurant;
}