Skip to content

Commit

Permalink
Fix logic for sync-errors email for when the Google Sheet ID isn't known
Browse files Browse the repository at this point in the history
  • Loading branch information
forevermatt committed Oct 2, 2024
1 parent 3391eae commit 33a7181
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/common/components/ExternalGroupsSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,15 @@ public static function processUpdates(
Yii::error($errorSummary);

if (!empty($errorsEmailRecipient)) {
$googleSheetUrl = '';
if (!empty($googleSheetIdForEmail)) {
$googleSheetUrl = 'https://docs.google.com/spreadsheets/d/' . $googleSheetIdForEmail;
}
self::sendSyncErrorsEmail(
$appPrefix,
$errors,
$errorsEmailRecipient,
'https://docs.google.com/spreadsheets/d/' . $googleSheetIdForEmail
$googleSheetUrl
);
}
}
Expand Down

0 comments on commit 33a7181

Please sign in to comment.