1
0
Fork 0
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:
Michael Genson 2024-10-19 04:33:32 -05:00 committed by GitHub
parent 60ea83d737
commit 1dc7b24146
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 187 additions and 14 deletions

View file

@ -77,6 +77,8 @@ export interface ReadWebhook {
}
export interface UserSummary {
id: string;
groupId: string;
householdId: string;
username: string;
fullName: string;
}

View file

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