21.12.16 항해99 4기 46일차
어제 백엔드 개발이 끝나서 추가로 개발할 것들을 의논하고 있었는데 프론트엔드 개발된 것과 서버통신하는 과정에서 몇가지 문제점이 발견되어서 고치느라 하루를 보냈다.
그리고 코드리뷰를 하면서 이미지를 서버에 저장하는 방식을 배웠다.
{ // mongoDB를 사용하고, sequelize 사용하지 않은 data
userId: '1',
userEmail: 'test@test.com',
userName: 'test',
nickname: 'test1',
imageUrl_profile: null,
introduce: null,
phoneNumber: null
}
{ // sequelize로 가져온 data
dataValues: {
userId: 1,
userEmail: 'test@test.com',
userName: 'test',
nickname: 'test1',
imageUrl_profile: null,
introduce: null,
phoneNumber: null
},
_previousDataValues: {
userId: 1,
userEmail: 'test@test.com',
userName: 'test',
nickname: 'test1',
imageUrl_profile: null,
introduce: null,
phoneNumber: null
},
uniqno: 1,
_changed: Set(0) {},
_options: {
isNewRecord: false,
_schema: null,
_schemaDelimiter: '',
raw: true,
attributes: [
'userId',
'userEmail',
'userName',
'nickname',
'imageUrl_profile',
'introduce',
'phoneNumber'
]
},
isNewRecord: false
}
enctype = "multipart/form-data"