The recipes.blue monorepo recipes.blue
recipes appview atproto

fix: add time field to getRecipe* endpoints

+3 -2
+3 -2
apps/api/src/xrpc/index.ts
··· 21 21 rkey: recipeTable.rkey, 22 22 title: recipeTable.title, 23 23 description: recipeTable.description, 24 + time: recipeTable.time, 24 25 ingredientsCount: sql`json_array_length(${recipeTable.ingredients})`, 25 26 stepsCount: sql`json_array_length(${recipeTable.steps})`, 26 27 createdAt: recipeTable.createdAt, ··· 47 48 author: authorInfo || await getAuthorInfo(r.authorDid, rpc), 48 49 rkey: r.rkey, 49 50 title: r.title, 50 - time: 5, 51 + time: r.time, 51 52 description: r.description || undefined, 52 53 ingredients: r.ingredientsCount as number, 53 54 steps: r.stepsCount as number, ··· 106 107 recipe: { 107 108 author: authorInfo, 108 109 title: recipe.title, 109 - time: 5, 110 + time: recipe.time, 110 111 description: recipe.description, 111 112 ingredients: recipe.ingredients, 112 113 steps: recipe.steps,