Skip to content

Commit f3cc2ad

Browse files
committed
update repositories
1 parent da05c2a commit f3cc2ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Internal/Repository/TransactionRepository.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ public function insertOne(TransactionDtoInterface $dto): Transaction
4646
{
4747
$attributes = $this->transformer->extract($dto);
4848
$instance = $this->transaction->newInstance($attributes);
49-
$instance->save();
50-
49+
assert($instance->save() === true);
5150
assert($instance->getKey() !== null);
5251

5352
return $instance;

0 commit comments

Comments
 (0)