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

110
Views
No se puede leer la propiedad 'coincidencia' de nulo"

Así que estoy trabajando en la función de la barra de búsqueda, donde puedes buscar nombre, correo electrónico, teléfono, número personal, ya tenía el nombre y el correo electrónico y funcionaba bien, sin embargo, agregué el teléfono y el número personal y comencé a recibir estos errores. ... Puedo buscar en este momento por teléfono y correo electrónico, pero cuando intento buscar el número personal y el nombre, obtengo No se puede leer la propiedad 'coincidencia' de nulo" Error de la consola...

 user: async () => { const accessibleUsers = await UserController.getAccessible(req); const userCollection = db.collection(User.tableName); const nativeResults = await userCollection.find({ _id: { $in: accessibleUsers.map((val) => ObjectID(val)) }, vc_isLogEntity: false, // deleted: false, //TODO RN-732 Add back $or: [ { email: matchRegex }, { firstName: matchRegex }, { lastName: matchRegex }, { phone: matchRegex }, { personnelNumber: matchRegex } ] }, {_id: 1}).toArray(); const users = await User .find(nativeResults.map(r => `${r._id}`)) .populate('role'); return users.map(user => ({ type: 'user', value: user, ...getMatches(user, ['email', 'firstName', 'lastName', 'phone', 'personnelNumber']) }));

Acabo de agregar {teléfono: matchRegex}, {personnelNumber: matchRegex} y 'phone', 'personnelNumber' al código. ¿Alguien puede ayudarme a evitar este error?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Creo que el número personal comprueba la ortografía y comprueba si estás buscando el nombre completo/nombre y apellido.

about 4 years ago · Juan Pablo Isaza Report
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!