Change id types (#114)

* Change id types

* Updated more models

* Saving changes

* Should be it
This commit was merged in pull request #114.
This commit is contained in:
KD
2025-04-03 21:13:05 -04:00
committed by GitHub
parent 12c4f56a22
commit 8abb196e1d
29 changed files with 147 additions and 37 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ public class SongDataController : BaseController
[HttpGet("download/{id}")]
public IActionResult Download(int id, [FromQuery] bool? randomizeFilename)
public IActionResult Download(Guid id, [FromQuery] bool? randomizeFilename)
{
var tokenManager = new TokenManager(this._config!);
var songContext = new SongContext(this._connectionString!);
@@ -172,7 +172,7 @@ public class SongDataController : BaseController
}
[HttpDelete("delete/{id}")]
public IActionResult DeleteSong(int id)
public IActionResult DeleteSong(Guid id)
{
var songContext = new SongContext(_connectionString!);
var songMetaData = songContext.RetrieveRecord(new Song { Id = id });