chore: fix
This commit is contained in:
@@ -130,7 +130,6 @@ func (d *Database) GetAllClients() ([]*models.Client, error) {
|
||||
func (d *Database) UpdateClient(client *models.Client) error {
|
||||
result := d.GDB.Model(&models.Client{}).Where("id = ?", client.ID).Updates(map[string]any{
|
||||
"username": client.Username,
|
||||
"password": client.Password,
|
||||
"nom": client.Nom,
|
||||
"prenom": client.Prenom,
|
||||
"telephone": client.Telephone,
|
||||
|
||||
Reference in New Issue
Block a user