infisical
infisical copied to clipboard
fix: allow creation of multiple project envs
Description 📣
Previously when creating multiple project environments at once, it was possible that our database would throw an error, due to the unique composite constraint on project ID / position. This would happen because the transactions would turn into race conditions of whichever would first finish wish the selected position.
The solution for this is to use the keystore to ensure that only one project environment update / create / delete operation will run at once.
Type ✨
- [x] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation
- [x] I have read the contributing guide, agreed and acknowledged the code of conduct. 📝