Discussions

Ask a Question
Back to All

Company end point race condition

It looks like if multiple create requests are made to the company create endpoint at the same time with the same name property set both can(incorrectly) succeed.

There is a constraint on the ServiceM8 side that normally prevents this but I somehow have the same companies with exactly the same name created 1 second apart from each other.

Subsequent requests to the update endpoint also fail until I delete one of the records.