Closed razzeee closed 6 years ago
If you (by any chance) have a dev environment you could try adding a null to empty string convert in https://github.com/Byorun/beatsaver-laravel/blob/develop/app/Http/Controllers/BeatSaverController.php#L264 and following.
Can you let me know how the code should look, has been some time since I did php/laravel.
something like php $variable = is_null($variable) ? '' : $variable;
there are many ways to check(e.g. with a simple IF statement). You could also move that into the update function a few lines later.
If you upload a new song, you will have to fill out the title, but not the description.
If you then try to change the title on the created song, it will error out due to the description being null.