Skip to content

Commit

Permalink
appsettings for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
juuwel committed Apr 25, 2024
1 parent d1e31b3 commit e687898
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/GlobalExceptionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void Handle(this Exception ex, IWebSocketConnection socket, string
serverResponse = new ServerSendsErrorMessage
{
// TODO: revert Error = "Something went wrong. Please try again later."
Error = message ?? ex.Message
Error = ex.Message
};

socket.SendDto(serverResponse);
Expand Down
2 changes: 1 addition & 1 deletion api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ await userRepository.CreateUser(new RegisterUserDto
}
catch (Exception e)
{
e.Handle(socket, e.Message);
e.Handle(socket, message);
}
};
});
Expand Down
8 changes: 8 additions & 0 deletions appsettings.Testing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"JWT": {
"Key": "c6ba91abe229c93211b4f0b693747c700c7d4436a587985cfcae87bca546b724",
"Issuer": "botanique.com",
"Audience": "botanique.com",
"ExpirationMinutes": 1440
}
}

0 comments on commit e687898

Please sign in to comment.