API is functional again after the dependency updates

This commit is contained in:
kdeng00
2020-02-02 20:32:09 -05:00
parent 57f76ee4a4
commit b067882c09
8 changed files with 187 additions and 22 deletions
+4 -4
View File
@@ -33,7 +33,7 @@ namespace manager {
song.data = std::move(data);
database::SongRepository songRepo(m_bConf);
if (songRepo.doesSongExist(song, type::SongFilter::titleAndArtist)) {
if (songRepo.doesSongExist(song, type::SongFilter::titleAlbArtistAlbum)) {
std::cout << "\ntitle: " << song.title << "\nartist: " << song.artist << "\n";
std::cout << "does not exist\n";
return std::make_pair(false, type::SongUpload::AlreadyExist);
@@ -44,7 +44,7 @@ namespace manager {
printSong(song);
songRepo.saveRecord(song);
song = songRepo.retrieveRecord(song, type::SongFilter::titleAndArtist);
song = songRepo.retrieveRecord(song, type::SongFilter::titleAlbArtistAlbum);
return std::make_pair(true, type::SongUpload::Successful);
}
@@ -293,8 +293,8 @@ namespace manager {
fs::remove(songPath);
}
std::cout << "copying song to the appropriate directory\n";
std::cout << song.songPath << std::endl;
std::cout << songPath << std::endl;
std::cout << song.songPath << "\n";
std::cout << songPath << "\n";
fs::copy(song.songPath, songPath);
fs::remove(song.songPath);
song.songPath = std::move(songPath);