Fixed issue with drives list not being initialized first as an array. Was silently killing the DeviceService and not saving new devices.
All checks were successful
Build & Deploy Backend / build (push) Successful in 1m20s
Build & Deploy Backend / deploy (push) Successful in 32s

This commit is contained in:
2025-11-04 08:27:52 +08:00
parent 89c88d6de9
commit 1a08230291
2 changed files with 27519 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -77,7 +77,7 @@ public class Devices {
@OneToMany(mappedBy = "device", cascade = CascadeType.ALL, orphanRemoval = true)
@JsonManagedReference
private List<Drive> drives;
private List<Drive> drives = new ArrayList<>();
@OneToMany(mappedBy = "device", cascade = CascadeType.ALL, orphanRemoval = true)
@JsonManagedReference