add clean logic for uploadsessions
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2025-12-25 15:27:45 +07:00
parent 45b7acc774
commit 18ec9b51f3
6 changed files with 150 additions and 117 deletions
@@ -86,7 +86,7 @@ public class FileUploadSession {
@PrePersist
public void prePersist() {
this.createdAt = LocalDateTime.now();
this.expiresAt = LocalDateTime.now().plusHours(24);
this.expiresAt = LocalDateTime.now().plusMinutes(1);
if (this.chunksUploaded == null) {
this.chunksUploaded = 0;
}