Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
La propiedad del objeto del modelo de correa está vacía, pero la depuración de todo el objeto muestra muchas propiedades

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 undefined

Tal 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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!