Skip to content

Commit 7d204bb

Browse files
author
Christian
committed
Fixed return type
1 parent b5019e6 commit 7d204bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceControl/MessageFailures/Api/EditFailedMessagesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public async Task<ActionResult<EditRetryResponse>> Edit(string failedMessageId,
4242
{
4343
logger.LogWarning("Cannot edit message {FailedMessageId} because it has already been edited", failedMessageId);
4444
// We return HTTP 200 even though the edit is being ignored. This is to keep the compatibility with older versions of ServicePulse that don't handle the payload.
45-
return Ok(new { EditIgnored = true });
45+
return Ok(new EditRetryResponse { EditIgnored = true });
4646
}
4747

4848
var failedMessage = await store.ErrorBy(failedMessageId);

0 commit comments

Comments
 (0)