Skip to content

Commit abe4f57

Browse files
committed
call $controller->commit() outside of foreach loop
1 parent b3b00eb commit abe4f57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Application/Application.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -993,10 +993,10 @@ public function handleRequest(ConnectorInterface $connector, Request $request):
993993
$checksumLinker->link($dataModel);
994994
}
995995
$result[] = $dataModel;
996+
}
996997

997-
if ($controller instanceof TransactionalInterface) {
998-
$controller->commit();
999-
}
998+
if ($controller instanceof TransactionalInterface) {
999+
$controller->commit();
10001000
}
10011001
} catch (Throwable $ex) {
10021002
if ($controller instanceof TransactionalInterface) {

0 commit comments

Comments
 (0)