Change the new columns type

This commit is contained in:
tidusjar 2016-04-01 22:17:15 +01:00
parent 425302ba12
commit 420e43dfaf
6 changed files with 6 additions and 6 deletions

View file

@ -52,7 +52,7 @@ namespace PlexRequests.Core
// TODO Keep an eye on this, since we are now doing 2 DB update for 1 single request, inserting and then updating
model.Id = (int)id;
entity = new RequestBlobs { Type = model.Type, Content = ByteConverterHelper.ReturnBytes(model), ProviderId = model.ProviderId, Id = (int)id };
entity = new RequestBlobs { Type = model.Type, Content = ByteConverterHelper.ReturnBytes(model), ProviderId = model.ProviderId, Id = (int)id, MusicId = model.MusicBrainzId};
var result = Repo.Update(entity);
return result ? id : -1;