Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Unity.GrantManager.Attachments;
public class ApplicationChefsFileAttachmentDto : EntityDto<Guid>
{
public Guid ApplicationId { get; set; }
public string ChefsSumbissionId { get; set; } = string.Empty;
public string ChefsSubmissionId { get; set; } = string.Empty;
public string ChefsFileId { get; set; } = string.Empty;
public string? Name { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ public async Task<string> GenerateAISummaryAttachmentAsync(Guid attachmentId)
{
// Get the attachment
var attachment = await applicationChefsFileAttachmentRepository.GetAsync(attachmentId);

// Get file content from CHEFS
var fileDto = await submissionAppService.GetChefsFileAttachment(
Guid.Parse(attachment.ChefsSumbissionId ?? ""),
Guid.Parse(attachment.ChefsSubmissionId ?? ""),
Guid.Parse(attachment.ChefsFileId ?? ""),
attachment.FileName ?? "");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public async Task HandleEventAsync(ApplicationProcessEvent eventData)
{
// Get the file content from CHEFS (now accessible via [AllowAnonymous])
var fileDto = await _submissionAppService.GetChefsFileAttachment(
Guid.Parse(attachment.ChefsSumbissionId ?? ""),
Guid.Parse(attachment.ChefsSubmissionId ?? ""),
Guid.Parse(attachment.ChefsFileId ?? ""),
attachment.FileName ?? "");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class ApplicationChefsFileAttachment : AbstractAttachmentBase
{
public override AttachmentType AttachmentType => AttachmentType.CHEFS;
public Guid ApplicationId { get; set; }
public string? ChefsSumbissionId { get; set; }
public string? ChefsSubmissionId { get; set; }
public string? ChefsFileId { get; set; }
public string? AISummary { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ await _iApplicationChefsFileAttachmentRepository
{
ApplicationId = applicationId,
ChefsFileId = file.Key.ToString(),
ChefsSumbissionId = submissionId,
ChefsSubmissionId = submissionId,
FileName = file.Value,
});
}
Expand Down
Loading
Loading