Closed nyapat closed 1 year ago
epic lint "fail"
What is this PR fixing?
(Will approve & merge once you answer the question.)
The promises ran concurrently when getting activeraids and comparing a local array of active raids. I just dropped adding them to a local array since it's already present in the guilddoc info (no raid would be added in time, all feedbacks would be cleared). Also it became apparent that I should actually validate uuids in channel topics (I accidentally deleted a channel in a server)
🤡
Promise.all(action that adds to local array) Promise.all(action that depends on local array)
Basically, the code was faulty because the promises ran at the same time and the condition always returned false