We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a2983 commit 27b6cfaCopy full SHA for 27b6cfa
LearningHub.Nhs.WebUI/Controllers/ResourceController.cs
@@ -413,7 +413,11 @@ public async Task<IActionResult> UnpublishConfirm(ResourceUnpublishConfirmViewMo
413
414
if (validationResult.IsValid)
415
{
416
- _ = Task.Run(async () => { await this.fileService.PurgeResourceFile(associatedFile, null); });
+ if (associatedFile.ScormDetails != null || associatedFile.HtmlDetails != null)
417
+ {
418
+ _ = Task.Run(async () => { await this.fileService.PurgeResourceFile(associatedFile, null); });
419
+ }
420
+
421
if (viewModel.CatalogueNodeVersionId == 1)
422
423
return this.Redirect("/my-contributions/unpublished");
0 commit comments