feat: support external and step images with structured cooking instructions
This commit is contained in:
1 parent
361862ad0b
commit
0ec1d45bdb
34 files changed
+898
-92
No files matched your search
@@ -6,6 +6,7 @@ import { ApiError } from './server';
|
||||
export function serialize(row: typeof recipes.$inferSelect): SavedRecipe {
|
||||
return {
|
||||
...row.data,
|
||||
steps: row.data.steps.map((step) => ({ ...step, images: step.images ?? [] })),
|
||||
id: row.id,
|
||||
title: row.title,
|
||||
published: row.published,
|
||||
|
||||
Reference in new issue
Block a user