Skip to content

Commit

Permalink
Merge pull request #227 from bcgov/yj
Browse files Browse the repository at this point in the history
Yj
  • Loading branch information
ychung-mot authored Apr 25, 2024
2 parents fdc8517 + 50acb47 commit 1f0f90c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 133 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ note
secrets
.terraform
docker.env
backup.sql
backup.sql
docker-compose.yml
note.txt
Scaffolding.txt
28 changes: 0 additions & 28 deletions crunchydb/note.txt

This file was deleted.

47 changes: 0 additions & 47 deletions docker-compose.yml

This file was deleted.

21 changes: 0 additions & 21 deletions localdb/note.txt

This file was deleted.

27 changes: 0 additions & 27 deletions postgres/note.txt

This file was deleted.

6 changes: 0 additions & 6 deletions server/StrDss.Data/Scaffolding.txt

This file was deleted.

7 changes: 4 additions & 3 deletions server/StrDss.Service/DelistingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ private async Task ProcessTakedownRequestBatchEmailAsync(OrganizationDto platfor
.ToList();

var content = CsvHelperUtils.GetBase64CsvString(csvRecords);
var date = DateTime.UtcNow.ToString("yyyy-MM-dd-HH-mm");
var date = DateUtils.ConvertUtcToPacificTime(DateTime.UtcNow).ToString("yyyy-MM-dd-HH-mm");
var fileName = $"{platform.OrganizationNm} - {date}.csv";

var template = new BatchTakedownRequest(_emailService)
{
Expand All @@ -434,15 +435,15 @@ private async Task ProcessTakedownRequestBatchEmailAsync(OrganizationDto platfor
Content = content,
ContentType = "text/csv",
Encoding = "base64",
Filename = $"{platform.OrganizationNm} - {date}.csv"
Filename = fileName
}},
};

var emailEntity = new DssEmailMessage
{
EmailMessageType = template.EmailMessageType,
MessageDeliveryDtm = DateTime.UtcNow,
MessageTemplateDsc = template.GetContent(),
MessageTemplateDsc = template.GetContent() + $" Attachement: {fileName} ({csvRecords.Count})",
IsHostContactedExternally = false,
IsSubmitterCcRequired = false,
MessageReasonId = null,
Expand Down

0 comments on commit 1f0f90c

Please sign in to comment.