mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 08:14:30 -04:00
fix: Bulk Update Owner Removes Some Recipe Data (#4393)
This commit is contained in:
@@ -182,6 +182,10 @@ export class RecipeAPI extends BaseCRUDAPI<CreateRecipe, Recipe, Recipe> {
|
||||
return await this.requests.put<Recipe[]>(routes.recipesBase, payload);
|
||||
}
|
||||
|
||||
async patchMany(payload: Recipe[]) {
|
||||
return await this.requests.patch<Recipe[]>(routes.recipesBase, payload);
|
||||
}
|
||||
|
||||
async updateLastMade(recipeSlug: string, timestamp: string) {
|
||||
return await this.requests.patch<Recipe, RecipeLastMade>(routes.recipesSlugLastMade(recipeSlug), { timestamp })
|
||||
}
|
||||
|
||||
@@ -377,7 +377,7 @@ export default defineComponent({
|
||||
});
|
||||
|
||||
loading.value = true;
|
||||
await api.recipes.updateMany(selected.value);
|
||||
await api.recipes.patchMany(selected.value);
|
||||
|
||||
await refreshRecipes();
|
||||
resetAll();
|
||||
|
||||
Reference in New Issue
Block a user