fix: n'envoie pas l'avatar lors de la connexion
This commit is contained in:
parent
22e5371b30
commit
bcdff48057
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ func Login(c *gin.Context) {
|
|||
}
|
||||
|
||||
var user models.User
|
||||
result := initializers.DB.Preload("Posts.Files").First(&user, "email = ?", body.Email)
|
||||
result := initializers.DB.Preload("Avatar").Preload("Posts.Files").First(&user, "email = ?", body.Email)
|
||||
|
||||
if result.Error != nil {
|
||||
if errors.Is(result.Error, gorm.ErrRecordNotFound) {
|
||||
|
|
Loading…
Add table
Reference in a new issue