      const [user] = await connection("users")
        .where("id", id)
        .first()
        .update({ name, email, username, password: password_hash })
        .returning("*");

      if (!user) {
        return response.status(404).json({ message: "User not found!" });
      }

      return response.status(201).json(user);
    } catch (err) {
      console.log(err);
      return response.status(400).send();