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
rkey: recipeTable.rkey,
22
title: recipeTable.title,
23
description: recipeTable.description,
0
24
ingredientsCount: sql`json_array_length(${recipeTable.ingredients})`,
25
stepsCount: sql`json_array_length(${recipeTable.steps})`,
26
createdAt: recipeTable.createdAt,
···
47
author: authorInfo || await getAuthorInfo(r.authorDid, rpc),
48
rkey: r.rkey,
49
title: r.title,
50
-
time: 5,
51
description: r.description || undefined,
52
ingredients: r.ingredientsCount as number,
53
steps: r.stepsCount as number,
···
106
recipe: {
107
author: authorInfo,
108
title: recipe.title,
109
-
time: 5,
110
description: recipe.description,
111
ingredients: recipe.ingredients,
112
steps: recipe.steps,
···
21
rkey: recipeTable.rkey,
22
title: recipeTable.title,
23
description: recipeTable.description,
24
+
time: recipeTable.time,
25
ingredientsCount: sql`json_array_length(${recipeTable.ingredients})`,
26
stepsCount: sql`json_array_length(${recipeTable.steps})`,
27
createdAt: recipeTable.createdAt,
···
48
author: authorInfo || await getAuthorInfo(r.authorDid, rpc),
49
rkey: r.rkey,
50
title: r.title,
51
+
time: r.time,
52
description: r.description || undefined,
53
ingredients: r.ingredientsCount as number,
54
steps: r.stepsCount as number,
···
107
recipe: {
108
author: authorInfo,
109
title: recipe.title,
110
+
time: recipe.time,
111
description: recipe.description,
112
ingredients: recipe.ingredients,
113
steps: recipe.steps,