Skip to content

Commit

Permalink
fix small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
xilef45 committed Jan 31, 2023
1 parent 7f90c8f commit de0a266
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/deskstar-backend/Deskstar/Controllers/AuthController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public AuthController(ILogger<AuthController> logger, IAuthUsecases authUsecases
/// Sample request:
/// Post /auth/createToken
/// </remarks>
///
///
/// <response code="200">Login succesful </response>
/// <response code="401">Credentials wrong or user not approved</response>
[HttpPost("createToken")]
Expand All @@ -56,7 +56,7 @@ public IActionResult CreateToken(CreateTokenUser user)
/// Sample request:
/// Post /auth/register
/// </remarks>
///
///
/// <response code="200">User added to db</response>
/// <response code="400">Mail already in use</response>
/// <response code="404">Company not found</response>
Expand All @@ -82,7 +82,7 @@ public IActionResult Register(RegisterUser registerUser)
/// Sample request:
/// Post /auth/registerAdmin
/// </remarks>
///
///
/// <response code="200">Admin added to db</response>
/// <response code="400">Mail or Company name already in use</response>
[HttpPost("registerAdmin")]
Expand All @@ -102,7 +102,7 @@ public IActionResult RegisterAdmin(RegisterAdminDto registerAdmin)
}
catch (Exception e)
{
return Problem(statusCode: 500);
return Problem(statusCode: 500, detail:e.Message);
}
}
}
}
2 changes: 1 addition & 1 deletion src/deskstar-frontend/pages/resources/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ const ResourceOverview = ({
const doDeleteRoom = async (): Promise<void> => {
if (room) {
if (session == null) return;
let result = await deleteRoom(session, room.roomName);
let result = await deleteRoom(session, room.roomId);

if (result.response == ResourceResponse.Success) {
toast.success(result.message);
Expand Down

0 comments on commit de0a266

Please sign in to comment.