|
|
@ -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
|
|
|
|
// 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;
|
|
|
|
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);
|
|
|
|
var result = Repo.Update(entity);
|
|
|
|
|
|
|
|
|
|
|
|
return result ? id : -1;
|
|
|
|
return result ? id : -1;
|
|
|
|