async function update(selector, newHouse) {
  const house = await db.House.findOne({
    where: {
      selector,
    },
  });

  if (house === null) {
    throw new NotFoundError('House not found');
  }

  await house.update(newHouse);

  this.event.emit(EVENTS.HOUSE.UPDATED, house.get({ plain: true }));

  return house.get({ plain: true });
}
@public
@description Update a house.
@param {string} selector - The selector of the use to update.
@param {object} newHouse - The object to update.
@returns {Promise<object>} Resolve with updated house.
@example
gladys.house.update('my-house', {
   name: 'my-new-name'
});