mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 15:19:41 +02:00
feat: Change Recipe Owner (#4355)
Co-authored-by: boc-the-git <3479092+boc-the-git@users.noreply.github.com>
This commit is contained in:
parent
60ea83d737
commit
1dc7b24146
11 changed files with 187 additions and 14 deletions
|
@ -77,6 +77,8 @@ export interface ReadWebhook {
|
|||
}
|
||||
export interface UserSummary {
|
||||
id: string;
|
||||
groupId: string;
|
||||
householdId: string;
|
||||
username: string;
|
||||
fullName: string;
|
||||
}
|
||||
|
|
|
@ -178,6 +178,10 @@ export class RecipeAPI extends BaseCRUDAPI<CreateRecipe, Recipe, Recipe> {
|
|||
return `${routes.recipesRecipeSlugExportZip(recipeSlug)}?token=${token}`;
|
||||
}
|
||||
|
||||
async updateMany(payload: Recipe[]) {
|
||||
return await this.requests.put<Recipe[]>(routes.recipesBase, payload);
|
||||
}
|
||||
|
||||
async updateLastMade(recipeSlug: string, timestamp: string) {
|
||||
return await this.requests.patch<Recipe, RecipeLastMade>(routes.recipesSlugLastMade(recipeSlug), { timestamp })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue