Rename variables
This commit is contained in:
@@ -31,11 +31,11 @@ namespace Musify.Infrastructure.MassTransit.Activities
|
||||
0,
|
||||
executeContext.CancellationToken);
|
||||
|
||||
var smallResizedVariable = executeContext.GetVariable<string>(executeContext.Arguments.SmallPictureVariableName);
|
||||
var smallResizedVariable = executeContext.GetVariable<string>(executeContext.Arguments.SmallPictureVariable);
|
||||
ArgumentNullException.ThrowIfNull(smallResizedVariable, nameof(smallResizedVariable));
|
||||
var mediumResizedVariable = executeContext.GetVariable<string>(executeContext.Arguments.MediumPictureVariableName);
|
||||
var mediumResizedVariable = executeContext.GetVariable<string>(executeContext.Arguments.MediumPictureVariable);
|
||||
ArgumentNullException.ThrowIfNull(mediumResizedVariable, nameof(mediumResizedVariable));
|
||||
var largeResizedVariable = executeContext.GetVariable<string>(executeContext.Arguments.LargePictureVariableName);
|
||||
var largeResizedVariable = executeContext.GetVariable<string>(executeContext.Arguments.LargePictureVariable);
|
||||
ArgumentNullException.ThrowIfNull(largeResizedVariable, nameof(largeResizedVariable));
|
||||
|
||||
try
|
||||
@@ -58,7 +58,7 @@ namespace Musify.Infrastructure.MassTransit.Activities
|
||||
playList.MediumPictureKeyName,
|
||||
playList.LargePictureKeyName);
|
||||
|
||||
playList.OriginalPictureKeyName = Path.GetFileName(executeContext.Arguments.OriginalPictureKeyName);
|
||||
playList.OriginalPictureKeyName = Path.GetFileName(executeContext.Arguments.OriginalPictureKey);
|
||||
playList.SmallPictureKeyName = Path.GetFileName(smallResizedVariable);
|
||||
playList.MediumPictureKeyName = Path.GetFileName(mediumResizedVariable);
|
||||
playList.LargePictureKeyName = Path.GetFileName(largeResizedVariable);
|
||||
@@ -94,10 +94,10 @@ namespace Musify.Infrastructure.MassTransit.Activities
|
||||
return compensateContext.Compensated();
|
||||
}
|
||||
|
||||
playList.OriginalPictureKeyName = compensateContext.Log.PreviousOriginalPictureKeyName;
|
||||
playList.SmallPictureKeyName = compensateContext.Log.PreviousSmallPictureKeyName;
|
||||
playList.MediumPictureKeyName = compensateContext.Log.PreviousMediumPictureKeyName;
|
||||
playList.LargePictureKeyName = compensateContext.Log.PreviousLargePictureKeyName;
|
||||
playList.OriginalPictureKeyName = compensateContext.Log.PreviousOriginalPictureKey;
|
||||
playList.SmallPictureKeyName = compensateContext.Log.PreviousSmallPictureKey;
|
||||
playList.MediumPictureKeyName = compensateContext.Log.PreviousMediumPictureKey;
|
||||
playList.LargePictureKeyName = compensateContext.Log.PreviousLargePictureKey;
|
||||
|
||||
database.PlayLists.Update(playList);
|
||||
await database.SaveChangesAsync(compensateContext.CancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user