// UpdateUser update an existing user
UpdateUser update an existing user
// UpdateUser update an existing user
func (ur *UserOracleRepository) UpdateUser(user models.User) error {
	_, err := ur.Tx.Exec(UPDATE_USER_ORACLE,
		user.Username, user.Password, user.Email, utils.BoolToInt(user.IsAdmin), user.Id.Hex(),
	)
	return err
}
func ( ur * UserOracleRepository ) UpdateUser ( user models . User ) error { _ , err := ur . Tx . Exec ( UPDATE_USER_ORACLE , user . Username , user . Password , user . Email , utils . BoolToInt ( user . IsAdmin ) , user . Id . Hex ( ) , ) return err }
UpdateUser update an existing user
UpdateUser update an existing user