Debanjan-San / krypton-WhatsappBot

GNU General Public License v3.0
50 stars 134 forks source link

Efficiency and Reliabiity Improved #6

Closed LAKSHIBRO closed 1 year ago

LAKSHIBRO commented 1 year ago

This code uses await inside the map() function to handle the asynchronous saving of each contact in parallel Also, contact.name has been replaced with *contact?.name ?? 'User', which uses optional chaining and nullish coalescing to handle the case where contact is null or undefined.

Cheers! @LAKSHIBRO