api: Expose default avatar image to logged-in user themselves

This commit is contained in:
Paul Bienkowski 2021-02-26 23:16:41 +01:00
parent cc4679d048
commit d5a1eed27a

View file

@ -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,
};