Skip to content

Commit 1431136

Browse files
authored
Merge pull request #10 from AIVLE-School-Third-Big-Project/mainpage
πŸ› Fix: μˆ˜μ • DB user μŠ€ν‚€λ§ˆ
2 parents 65572bc + 76b5d0f commit 1431136

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

β€Žsrc/models/User.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const userSchema = new Schema({
1111
weight: { type: Number, required: true },
1212
file: { type: String },
1313
favoriteStyle: {
14-
style: { type: String },
15-
color: { type: String },
16-
fit: { type: String },
14+
style: { type: String, default: '' },
15+
color: { type: String, default: '' },
16+
fit: { type: String, default: '정핏' },
1717
},
1818
sizeProfile: { type: Schema.Types.ObjectId, ref: 'SizeProfile' },
1919
})

β€Žstyle/src/components/User/Register.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import authenticatedAxios from '../../api/authenticatedAxios'
2-
import axios from 'axios'
32
import { API_URL } from '../../api/apiConfig'
43

54
async function registerUser(userData) {

0 commit comments

Comments
Β (0)