#93: Initializing some properties in the song model earlier

This commit is contained in:
kdeng00 committed 2024-07-21 16:36:49 -04:00
1 parent ba0bf851f7
commit 829eb2925b
2 files changed
+5 -2

No files matched your search

+4 -2
View File
@@ -210,8 +210,10 @@ public class SongManager : BaseManager
// Change the name of this method to only focus on wav files
public void SaveSongToFileSystem(IFormFile songFile, IFormFile coverArtData, Song song)
{
song.SongDirectory = _tempDirectoryRoot;
song.DateCreated = DateTime.Now;
if (string.IsNullOrEmpty(song.SongDirectory))
{
song.SongDirectory = _tempDirectoryRoot;
}
if (string.IsNullOrEmpty(song.Filename))
{