Quellcode durchsuchen

When uploading a json recipe, set to public automatically

Lee Morgan vor 1 Monat
Ursprung
Commit
b374d54bd1
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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();