• Micheal Mand's avatar
    Prevent race conditions by getting fresh data · 5a3ebbcb
    Micheal Mand authored
    If two of the same tag were to be supplied, both would be created (or attempt to be created, because the second one will fail DB unique index and throw an error). We can prevent this by fetching fresh data from the database before checking.
    5a3ebbcb
Name
Last commit
Last update
.github Loading commit data...
Modules Loading commit data...
Themes Loading commit data...
app Loading commit data...
bootstrap Loading commit data...
config Loading commit data...
database Loading commit data...
docker Loading commit data...
public Loading commit data...
resources Loading commit data...
routes Loading commit data...
storage Loading commit data...
tests Loading commit data...
.babelrc Loading commit data...
.env.example Loading commit data...
.eslintrc.js Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.htaccess Loading commit data...
.php_cs.dist Loading commit data...
.travis.yml Loading commit data...
LICENSE.md Loading commit data...
artisan Loading commit data...
composer.json Loading commit data...
dcp Loading commit data...
docker-compose.yml Loading commit data...
package.json Loading commit data...
phpunit.xml Loading commit data...
readme.md Loading commit data...
server.php Loading commit data...
travis.sh Loading commit data...
webpack.mix.js Loading commit data...