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

71
Views
Usando la transacción etcd con una declaración if de valor verdadero

En JavaScript, estoy tratando de realizar múltiples actualizaciones clave para etcd en 1 transacción. He filtrado los pares clave-valor que quiero actualizar antes de la transacción, así que básicamente no tengo ninguna comparación que hacer. Quiero usarlo así:

 const client = new Etcd3({ hosts: connectionString }); ... await client.if(true) .then( client.put(entry1).value(JSON.stringify(account1, null, 4)); client.put(entry2).value(JSON.stringify(account2, null, 4)); client.put(entry3).value(JSON.stringify(account3, null, 4)); client.put(entry4).value(JSON.stringify(account4, null, 4)); ) .else();

¿Hay algo que pueda poner en lugar de esta true que actuará de la misma manera?

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!