Skip to content

Commit

Permalink
Merge pull request #994 from bcgov/bugfix/AB#27522-CreatedToSentEmail
Browse files Browse the repository at this point in the history
bugfix/AB#27522-ChangeCreatedToSent
  • Loading branch information
jimmyPasta authored Jan 9, 2025
2 parents 1ea8519 + 3e1d746 commit 82681c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public async Task<Task> ConsumeAsync(EmailMessages message)
emailLog.ChesResponse = JsonConvert.SerializeObject(response);
emailLog.ChesStatus = response.StatusCode.ToString();

if(response.StatusCode.ToString() == EmailStatus.Sent) {
if(response.StatusCode.ToString() == EmailStatus.Created.ToString()) {
emailLog.Status = EmailStatus.Sent;
} else if (response.StatusCode.ToString() == "0") {
emailLog.Status = EmailStatus.Failed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace Unity.Notifications.Emails;

public static class EmailStatus
{
public const string Created = "Created";
public const string Sent = "Sent";
public const string Failed = "Failed";
public const string Draft = "Draft";
Expand Down

0 comments on commit 82681c9

Please sign in to comment.