Revert "Table locking for public_id integrity"
This commit is contained in:
parent
3b1bfe1013
commit
498d7cbca9
2 changed files with 0 additions and 6 deletions
|
|
@ -27,7 +27,6 @@ class EntityModel extends Eloquent
|
|||
$lastEntity = $className::withTrashed()
|
||||
->scope(false, $entity->account_id)
|
||||
->orderBy('public_id', 'DESC')
|
||||
->lockForUpdate()
|
||||
->first();
|
||||
|
||||
if ($lastEntity) {
|
||||
|
|
|
|||
|
|
@ -66,8 +66,6 @@ class ClientRepository extends BaseRepository
|
|||
{
|
||||
$publicId = isset($data['public_id']) ? $data['public_id'] : false;
|
||||
|
||||
DB::beginTransaction();
|
||||
|
||||
if (!$publicId || $publicId == '-1') {
|
||||
$client = Client::createNew();
|
||||
} else {
|
||||
|
|
@ -77,9 +75,6 @@ class ClientRepository extends BaseRepository
|
|||
$client->fill($data);
|
||||
$client->save();
|
||||
|
||||
DB::commit();
|
||||
|
||||
|
||||
/*
|
||||
if ( ! isset($data['contact']) && ! isset($data['contacts'])) {
|
||||
return $client;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue