mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
Revert "Table locking for public_id integrity"
This commit is contained in:
parent
3b1bfe1013
commit
498d7cbca9
@ -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…
Reference in New Issue
Block a user