api: Expose default avatar image to logged-in user themselves
This commit is contained in:
parent
cc4679d048
commit
d5a1eed27a
|
@ -71,7 +71,7 @@ class User extends mongoose.Model {
|
||||||
email: this.email,
|
email: this.email,
|
||||||
token: this.generateJWT(),
|
token: this.generateJWT(),
|
||||||
bio: this.bio,
|
bio: this.bio,
|
||||||
image: this.image,
|
image: this.image || 'https://static.productionready.io/images/smiley-cyrus.jpg',
|
||||||
areTracksVisibleForAll: this.areTracksVisibleForAll,
|
areTracksVisibleForAll: this.areTracksVisibleForAll,
|
||||||
apiKey: this._id,
|
apiKey: this._id,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue