Skip to content

Commit

Permalink
fix: Update Mealie service component endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
bobonthenet authored and bastienwirtz committed Oct 26, 2024
1 parent c6571b4 commit 0e5106c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/services/Mealie.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<template v-if="item.subtitle">
{{ item.subtitle }}
</template>
<template v-else-if="meal"> Today: {{ meal.name }} </template>
<template v-else-if="meal"> Today: {{ meal[0].recipe.name }} </template>
<template v-else-if="stats">
happily keeping {{ stats.totalRecipes }} recipes organized
</template>
Expand Down Expand Up @@ -44,10 +44,10 @@ export default {
if (this.item.subtitle != null) return;
this.meal = await this.fetch("/api/meal-plans/today/", { headers }).catch(
this.meal = await this.fetch("/api/groups/mealplans/today", { headers }).catch(
(e) => console.log(e),
);
this.stats = await this.fetch("/api/debug/statistics/", {
this.stats = await this.fetch("/api/admin/about/statistics", {
headers,
}).catch((e) => console.log(e));
},
Expand Down

0 comments on commit 0e5106c

Please sign in to comment.