@@ -8,7 +8,7 @@
ingredients={[]}
steps={[]}
notes=""
- visibility="private"
+ visibility="public"
route="/recipe/new"
/>
</div>
@@ -29,7 +29,7 @@ export async function POST({request, cookies}){
notes: body.notes,
createdAt: new Date(),
updatedAt: new Date(),
- private: false
+ private: body.private === true
});
await recipe.save();