Rename ActionId to Id across the codebase
Updated the `ActionId` property to `Id` in `RecActionDto` and `RecAction` classes for consistency. Reflected this change in all relevant files, including log messages, property assignments, and database column mappings. Standardized naming conventions to improve code clarity and maintainability.
This commit is contained in:
parent
dc777a04f6
commit
de17d398ff
@ -19,7 +19,7 @@ public class HeaderQueryBehavior<TRecAction>(IRecDbContext dbContext, ILogger<He
|
|||||||
|
|
||||||
if (result?.RawHeader is null)
|
if (result?.RawHeader is null)
|
||||||
{
|
{
|
||||||
logger?.LogWarning("Header query did not return a result or returned a null REQUEST_HEADER. Profile ID: {ProfileId}, Action ID: {ActionId}", action.ProfileId, action.ActionId);
|
logger?.LogWarning("Header query did not return a result or returned a null REQUEST_HEADER. Profile ID: {ProfileId}, Action ID: {Id}", action.ProfileId, action.Id);
|
||||||
|
|
||||||
return await next(cancel);
|
return await next(cancel);
|
||||||
}
|
}
|
||||||
@ -29,8 +29,8 @@ public class HeaderQueryBehavior<TRecAction>(IRecDbContext dbContext, ILogger<He
|
|||||||
if(headerDict is null)
|
if(headerDict is null)
|
||||||
{
|
{
|
||||||
logger?.LogWarning(
|
logger?.LogWarning(
|
||||||
"Header JSON deserialization returned null. RawHeader: {RawHeader}, ProfileId: {ProfileId}, ActionId: {ActionId}",
|
"Header JSON deserialization returned null. RawHeader: {RawHeader}, ProfileId: {ProfileId}, Id: {Id}",
|
||||||
result.RawHeader, action.ProfileId, action.ActionId);
|
result.RawHeader, action.ProfileId, action.Id);
|
||||||
|
|
||||||
return await next(cancel);
|
return await next(cancel);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
public record RecActionDto
|
public record RecActionDto
|
||||||
{
|
{
|
||||||
public required long ActionId { get; init; }
|
public required long Id { get; init; }
|
||||||
|
|
||||||
public long? ProfileId { get; init; }
|
public long? ProfileId { get; init; }
|
||||||
|
|
||||||
|
|||||||
@ -33,9 +33,9 @@ public class InvokeRecActionsCommandHandler(ISender sender, IHttpClientFactory c
|
|||||||
{
|
{
|
||||||
logger?.LogError(
|
logger?.LogError(
|
||||||
ex,
|
ex,
|
||||||
"Error invoking Rec action. ProfileId: {ProfileId}, ActionId: {ActionId}",
|
"Error invoking Rec action. ProfileId: {ProfileId}, Id: {Id}",
|
||||||
action.ProfileId,
|
action.ProfileId,
|
||||||
action.ActionId
|
action.Id
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|||||||
@ -33,9 +33,9 @@ public class InvokeRecActionCommandHandler(
|
|||||||
if (action.RestType is null)
|
if (action.RestType is null)
|
||||||
{
|
{
|
||||||
logger?.LogWarning(
|
logger?.LogWarning(
|
||||||
"Rec action could not be invoked because the RestType value is null. ProfileId: {ProfileId}, ActionId: {ActionId}",
|
"Rec action could not be invoked because the RestType value is null. ProfileId: {ProfileId}, Id: {Id}",
|
||||||
action.ProfileId,
|
action.ProfileId,
|
||||||
action.ActionId
|
action.Id
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ public class InvokeRecActionCommandHandler(
|
|||||||
|
|
||||||
await sender.Send(new CreateOutResCommand
|
await sender.Send(new CreateOutResCommand
|
||||||
{
|
{
|
||||||
ActionId = action.ActionId,
|
ActionId = action.Id,
|
||||||
Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }),
|
Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }),
|
||||||
Body = resBody,
|
Body = resBody,
|
||||||
AddedWho = config?["AddedWho"]
|
AddedWho = config?["AddedWho"]
|
||||||
|
|||||||
@ -15,7 +15,7 @@ namespace ReC.Domain.Entities;
|
|||||||
public class RecAction
|
public class RecAction
|
||||||
{
|
{
|
||||||
[Column("ACTION_ID")]
|
[Column("ACTION_ID")]
|
||||||
public required long ActionId { get; set; }
|
public required long Id { get; set; }
|
||||||
|
|
||||||
[Column("PROFILE_ID")]
|
[Column("PROFILE_ID")]
|
||||||
public long? ProfileId { get; set; }
|
public long? ProfileId { get; set; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user