tangled
alpha
login
or
join now
roost.moe
/
recipes.blue
2
fork
atom
The recipes.blue monorepo
recipes.blue
recipes
appview
atproto
2
fork
atom
overview
issues
1
pulls
pipelines
fix: add time field to getRecipe* endpoints
Hayden Young
1 year ago
e417dfc2
85148820
+3
-2
1 changed file
expand all
collapse all
unified
split
apps
api
src
xrpc
index.ts
+3
-2
apps/api/src/xrpc/index.ts
···
21
21
rkey: recipeTable.rkey,
22
22
title: recipeTable.title,
23
23
description: recipeTable.description,
24
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
50
-
time: 5,
51
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
109
-
time: 5,
110
110
+
time: recipe.time,
110
111
description: recipe.description,
111
112
ingredients: recipe.ingredients,
112
113
steps: recipe.steps,