소스 검색

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();