Skip to content

Commit

Permalink
Merge pull request #3660 from cisagov/feature/CRRM-128
Browse files Browse the repository at this point in the history
Add Missing BulkImport Method Declaration to Interface
  • Loading branch information
randywoods authored Dec 5, 2023
2 parents f05a4f3 + c6f7b14 commit 48d1377
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//
////////////////////////////////
using CSETWebCore.DataLayer.Model;
using System.IO;
using System.Threading.Tasks;

namespace CSETWebCore.Business.AssessmentIO.Import
Expand All @@ -13,5 +14,6 @@ public interface IImportManager
{
Task ProcessCSETAssessmentImport(byte[] zipFileFromDatabase, int? currentUserId, string accessKey, CSETContext context, string password = "", bool overwriteAssessment = false);
void LaunchLegacyCSETProcess(string csetFilePath, string token, string processPath, string apiURL);
public Task BulkImportAssessments(Stream assessmentsZipArchive, bool overwriteAssessments = false);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public IActionResult BulkExportAssessments(Guid[] guidsToExport)
return StatusCode(404, "No Assessments with the provided GUIDs were found for export.");
}

return File(assessmentsExportArchive, "application/octet-stream", "BulkAssessmentExport.zip");
return File(assessmentsExportArchive, "application/zip", "BulkAssessmentExport.zip");
}
catch (Exception exc)
{
Expand Down

0 comments on commit 48d1377

Please sign in to comment.