Skip to content

Commit

Permalink
fix(profile): return user bio
Browse files Browse the repository at this point in the history
  • Loading branch information
finxol committed Nov 29, 2022
1 parent 8f1d171 commit 48e4d67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const UserSchema = new mongoose.Schema({
},
bio: {
type: String,
default: ""
default: null
},
smokePref: {
type: Boolean,
Expand Down
1 change: 1 addition & 0 deletions api/util/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ export const getPublicProfile = async (id: string) => {
picture: 1,
nickname: 1,
name: 1,
bio: 1,
})
}

Expand Down

0 comments on commit 48e4d67

Please sign in to comment.