Así que tengo un trabajo strapi cron, y esto es parte de él:
const entity = await strapi .query("registration") .model.query((qb) => { qb.where("created_at", ">", emailSendDate); }) .fetch(); strapi.log.debug("entity", entity); strapi.log.debug("entity type", typeof entity); strapi.log.debug("entity email", entity["email"]); strapi.log.debug("entity email", entity.email);Y luego me sale esta respuesta:
[2021-10-05T03:49:01.012Z] debug entity {"id":98,"email":"example_email@domain.com" ... [2021-10-05T03:49:01.012Z] debug entity type object [2021-10-05T03:49:01.012Z] debug entity email undefined [2021-10-05T03:49:01.012Z] debug entity email undefinedTal vez no entiendo algo aquí, pero ¿no debería ser un objeto Javascript simple? ¿Por qué no estoy definido cuando intento acceder a las propiedades?