Skip to content

Commit

Permalink
$transaction->rollback($e);
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed May 11, 2024
1 parent 61a4048 commit b372661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

services:
postgres:
image: postgres:16
image: postgres:13
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
Expand Down
1 change: 1 addition & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function adleradaptivity_delete_instance(int $instance_id): bool {
$transaction->allow_commit();
} catch (Exception $e) {
$logger->error('Could not delete adleradaptivity instance with id ' . $instance_id);
$transaction->rollback($e);
try {
$transaction->rollback($e);
} catch (Exception $e) {
Expand Down

0 comments on commit b372661

Please sign in to comment.