diff --git a/api/src/models/User.js b/api/src/models/User.js index 16efd55..28ca006 100644 --- a/api/src/models/User.js +++ b/api/src/models/User.js @@ -71,7 +71,7 @@ class User extends mongoose.Model { email: this.email, token: this.generateJWT(), bio: this.bio, - image: this.image, + image: this.image || 'https://static.productionready.io/images/smiley-cyrus.jpg', areTracksVisibleForAll: this.areTracksVisibleForAll, apiKey: this._id, };