Parcourir la source

When uploading a json recipe, set to public automatically

Lee Morgan il y a 1 mois
Parent
commit
b374d54bd1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/routes/recipe/new/+server.js

+ 1 - 1
src/routes/recipe/new/+server.js

@@ -23,7 +23,7 @@ export async function POST({request, cookies}){
         notes: body.notes,
         createdAt: new Date(),
         updatedAt: new Date(),
-        private: body.private
+        private: false
     });
 
     await recipe.save();