강의에서 상세페이지 수정 하는 코드로 작성하면
DB 저장이 그림 처럼 됩니다.

$('#send').click(function(){
var 수정할거 = {
제목 : $('#title').val(),
가격 : $('#price').val(),
내용 : $('#content').val(),
날짜 : new Date(),
// 이미지 : url,
// uid : JSON.parse( localStorage.getItem('user') ).uid,
// 이름 : JSON.parse(localStorage.getItem('user')).displayName
}
db.collection('product').doc(쿼리스트링.get('id')).update({수정할거}).then((result)=>{
console.log(수정할거);
// window.location.href = '/index.html'
}).catch((error)=>{
console.log(error)
})
})