Skip to content

Commit

Permalink
Fix DeleteTransaction being bocked instead of UpdateTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Chingling152 committed Jan 26, 2024
1 parent 3aa5d77 commit eda3ac3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public async Task<IActionResult> CreateTransaction([FromBody] TransactionModel t
/// </summary>
/// <param name="id">id of the transaction</param>
/// <param name="transaction">transaction changes</param>
[NonAction]
[Obsolete("Disabled endpoint")]
[HttpPut("{id}")]
[ProducesResponseType(typeof(SaveResponse<TransactionModel>), 200)]
[ProducesResponseType(typeof(ValidationErrorResponse), 400)]
Expand All @@ -74,8 +76,6 @@ public async Task<IActionResult> UpdateTransaction([FromRoute] Guid id, [FromBod
/// Deletes an existing transaction on database
/// </summary>
/// <param name="id">id of the transaction</param>
[NonAction]
[Obsolete("Disabled endpoint")]
[HttpDelete("{id}")]
[ProducesResponseType(204)]
public async Task<IActionResult> DeleteTransaction([FromRoute] Guid id)
Expand Down

0 comments on commit eda3ac3

Please sign in to comment.