Skip to content

Commit

Permalink
Adjusted timings again for production
Browse files Browse the repository at this point in the history
  • Loading branch information
rstief committed Oct 17, 2023
1 parent 8a3dbe5 commit 29ab17f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public ResponseEntity<AttachmentUnit> createAttachmentUnit(@PathVariable Long le
@EnforceAtLeastEditor
public ResponseEntity<String> uploadSlidesForProcessing(@PathVariable Long lectureId, @RequestPart("file") MultipartFile file) {
// time until the temporary file gets deleted. Must be greater or equal than MINUTES_UNTIL_DELETION in attachment-units.component.ts
int minutesUntilDeletion = 3;
int minutesUntilDeletion = 30;
log.debug("REST request to upload file: {}", file.getOriginalFilename());
checkLecture(lectureId);
if (!Objects.equals(FilenameUtils.getExtension(file.getOriginalFilename()), "pdf")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class AttachmentUnitsComponent implements OnInit {
file: File;
filename: string;
//time until the file gets uploaded again. Must be less or equal than minutesUntilDeletion in AttachmentUnitResource.java
readonly MINUTES_UNTIL_DELETION = 3;
readonly MINUTES_UNTIL_DELETION = 29;

constructor(
private activatedRoute: ActivatedRoute,
Expand Down

0 comments on commit 29ab17f

Please sign in to comment.