keyshade
keyshade copied to clipboard
API: Error while hard syncing a project
Describe the bug
When we try to sync a project with hard-sync on, we are getting a unique constraint error.
To Reproduce Steps to reproduce the behavior:
- Turn on the API
- Go to ProjectController in Postman
- Use Create Project to create a project.
- Fork this project using Fork Project endpoint.
- Use the Sync Fork endpoint and try to sync the forked project
- Make sure you set
hardSync=true
- Observe the error
Expected behavior
The sync should happen without any errors
Screenshots