Преглед на файлове

When uploading a json recipe, set to public automatically

Lee Morgan преди 1 месец
родител
ревизия
b374d54bd1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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();