Hello @kumorin,
Instead of using
await strapi.db.query(‘api::hotel.hotel’).update({ data })
use this
await strapi.entityService.update(“api::hotel.hotel”, fetchHotel.id, { data });
The service method is useful while storing data into components.
Hope this helps