Skip to content

Commit 8ce7ff4

Browse files
committed
Dont even want to comment on it
1 parent dd952ce commit 8ce7ff4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

TickAPI/TickAPI/Tickets/Controllers/TicketsController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
using TickAPI.Tickets.Abstractions;
66
using TickAPI.Tickets.DTOs.Response;
77
using TickAPI.Common.Pagination.Responses;
8-
using TickAPI.Tickets.Abstractions;
9-
using TickAPI.Tickets.DTOs.Response;
108

119
namespace TickAPI.Tickets.Controllers;
1210

@@ -33,7 +31,7 @@ public async Task<ActionResult<GetTicketDetailsResponseDto>> GetTicketDetails(Gu
3331
}
3432
var email = emailResult.Value!;
3533
var ticket = await _ticketService.GetTicketDetailsAsync(id, email);
36-
if (!ticket.IsSuccess)
34+
if (ticket.IsError)
3735
{
3836
return StatusCode(ticket.StatusCode, ticket.ErrorMsg);
3937
}

0 commit comments

Comments
 (0)