fix: resolve strongly typed ID compilation errors
- Change PointsAccountId to IGuidStronglyTypedId - Update PointsTransaction to use PointsAccountId - Update Domain Events and Command responses - Fix Member and Activity endpoint references - Remove duplicate PointsChangedEvent in Application layer
This commit is contained in:
parent
70fac0f60e
commit
49ef22ae55
@ -53,7 +53,7 @@ public class CampaignsController : ControllerBase
|
||||
[HttpGet("{campaignId:guid}")]
|
||||
public async Task<ActionResult<GetCampaignResponse>> GetCampaign(Guid campaignId, CancellationToken cancellationToken)
|
||||
{
|
||||
var campaign = await _campaignRepository.GetByIdAsync(CampaignId.FromGuid(campaignId), cancellationToken);
|
||||
var campaign = await _campaignRepository.GetByIdAsync(campaignId, cancellationToken);
|
||||
if (campaign == null)
|
||||
{
|
||||
return NotFound(new { error = "Campaign not found" });
|
||||
@ -79,7 +79,7 @@ public class CampaignsController : ControllerBase
|
||||
[HttpPost("{campaignId:guid}/publish")]
|
||||
public async Task<ActionResult<PublishCampaignResponse>> PublishCampaign(Guid campaignId, CancellationToken cancellationToken)
|
||||
{
|
||||
var campaign = await _campaignRepository.GetByIdAsync(CampaignId.FromGuid(campaignId), cancellationToken);
|
||||
var campaign = await _campaignRepository.GetByIdAsync(campaignId, cancellationToken);
|
||||
if (campaign == null)
|
||||
{
|
||||
return NotFound(new { error = "Campaign not found" });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user