erxes is an open-source customer experience and growth marketing platform — kind of an all-in-one tool for managing conversations, sales pipelines, marketing campaigns, and analytics. It’s a huge project with tons of modules and integrations, so even small fixes matter. This one was a really simple issue compared to my earlier PRs. The problem was a function that didn’t handle async behavior properly.
The fix was to make it return a Promise, ensuring that the function completed its asynchronous work before continuing.
That small change helped stabilize the flow and made the code cleaner and more predictable.
removeChecklists(contentTypeIds: string[]): Promise<void>;
Even a tiny change can make a real difference in a large codebase.
This fix reminded me how easy it is to overlook async behavior — and how important it is to make functions predictable when dealing with network requests, database calls, or delayed responses.
 

 
    
Top comments (0)