UPDATE "endPoint" to "duration" in frontend to match backend

This commit is contained in:
2025-12-06 23:32:15 +00:00
parent d5017bb333
commit 08ef00c22e
6 changed files with 14 additions and 17 deletions

View File

@@ -37,7 +37,7 @@ public class EditService {
private void validateClipConfig(ClipOptions clipOptions) {
Float start = clipOptions.getStartPoint();
Float end = clipOptions.getDuration();
Float duration = clipOptions.getDuration();
Float fileSize = clipOptions.getFileSize();
Integer width = clipOptions.getWidth();
Integer height = clipOptions.getHeight();
@@ -47,12 +47,8 @@ public class EditService {
throw new IllegalArgumentException("Start point cannot be negative");
}
if (end != null && end < 0) {
throw new IllegalArgumentException("End point cannot be negative");
}
if (start != null && end != null && end <= start) {
throw new IllegalArgumentException("End point must be greater than start point");
if (duration != null && duration < 0) {
throw new IllegalArgumentException("Duration cannot be negative");
}
if (fileSize != null && fileSize < 100) {