Cleaned up some warnings, and fixed issue where no Year records were being retrieved #37

This commit is contained in:
amazing-username
2019-06-16 10:56:37 -04:00
parent d85197c313
commit e1614adfad
3 changed files with 4 additions and 5 deletions
+3 -3
View File
@@ -247,7 +247,7 @@ namespace Icarus.Controllers.Managers
} }
} }
public async Task SaveSong(SongData songData) public void SaveSong(SongData songData)
{ {
try try
{ {
@@ -413,7 +413,7 @@ namespace Icarus.Controllers.Managers
return _songs; return _songs;
} }
public async Task<Song> RetrieveSongDetails(int id) public Song RetrieveSongDetails(int id)
{ {
DataTable results = new DataTable(); DataTable results = new DataTable();
@@ -456,7 +456,7 @@ namespace Icarus.Controllers.Managers
SongData song = new SongData(); SongData song = new SongData();
try try
{ {
_song = await RetrieveSongDetails(id); _song = RetrieveSongDetails(id);
song = await RetrieveSongFromFileSystem(_song); song = await RetrieveSongFromFileSystem(_song);
} }
catch (Exception ex) catch (Exception ex)
-1
View File
@@ -13,7 +13,6 @@ namespace Icarus.Controllers.Utilities
public class SongCompression public class SongCompression
{ {
#region Fields #region Fields
string _archiveDirectory;
string _compressedSongFilename; string _compressedSongFilename;
string _tempDirectory; string _tempDirectory;
byte[] _uncompressedSong; byte[] _uncompressedSong;
+1 -1
View File
@@ -41,7 +41,7 @@ namespace Icarus.Database.Repositories
var query = "SELECT yr.*, COUNT(*) AS SongCount FROM Year " + var query = "SELECT yr.*, COUNT(*) AS SongCount FROM Year " +
"yr LEFT JOIN Song sng ON yr.YearId=sng.YearId " + "yr LEFT JOIN Song sng ON yr.YearId=sng.YearId " +
"GROUP BY gnr.YearId"; "GROUP BY yr.YearId";
using (var cmd = new MySqlCommand(query, conn)) using (var cmd = new MySqlCommand(query, conn))
{ {