Skip to content

Commit

Permalink
fix: export notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavs-gutmanis committed Dec 27, 2023
1 parent 84a84a7 commit 9cced52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ public function getAllNamesById(): array
;
}

/**
* @return null|ExportNotificationRecord
*/
public function getById(int $id = null)
public function getById(int $id = null): ?ExportNotificationRecord
{
return ExportNotificationRecord::findOne(['id' => $id]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public function actionSave(): Response

$post = \Craft::$app->request->post();
$post['recipients'] = StringHelper::extractSeparatedValues($post['recipients']);
$post['recipients'] = json_encode($post['recipients']);

$id = \Craft::$app->request->post('notificationId');
$record = $this->getNewOrExistingNotification($id);
Expand Down

0 comments on commit 9cced52

Please sign in to comment.