Skip to content

Commit

Permalink
Fix: Typo broke background sync
Browse files Browse the repository at this point in the history
does not work because of a typo (wrong null coalescing operator). So on
our existing installation, we get an undefined array key error here.
  • Loading branch information
Matthew Toseland committed Dec 17, 2024
1 parent e22b6e9 commit 452fdac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BackgroundJob/SyncSubmissionsWithLinkedFileJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(
public function run($argument): void {
$oldUser = $this->userSession->getUser();
$formId = $argument['form_id'];
$attempt = $argument['attempt'] ?: 1;
$attempt = $argument['attempt'] ?? 1;

try {
$form = $this->formMapper->findById($formId);
Expand Down

0 comments on commit 452fdac

Please sign in to comment.