hcengineering / hcengineering/platform
search promise is locking the proccess
Open
- Dominant language
- TypeScript
- Stars
- 27.7k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/hcengineering/platform/blob/c8a58d542805be956067a211dd7616bf53d15946/server/account/src/index.ts#L795
this promise is used few lines below it and we are awaiting twice on it
if any error happens in the generateWorkspaceRecord function it will not assign it to searchPromise and over and over again it will happen untill you restart the pod and that global variable will be free
so further requests will always fail no matter they are correct or not bcz it will run the former promise not the new one
View in Huly UBERF-6274
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.