Skip to content

Commit

Permalink
fix slow shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jul 7, 2024
1 parent 6e79e94 commit 169c1ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ fi

/usr/share/nginx/html/injectEnv.sh

nginx -g "daemon off;"
exec nginx -g "daemon off;"
2 changes: 1 addition & 1 deletion src/adapters/akatsuki-api/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const authenticate = async (
request: AuthenticateRequest
): Promise<Identity | null> => {
const response = await authApiInstance.post("/api/v1/authenticate", request)
if (response.status >= 400) {
if (response.status < 200 || response.status >= 300) {
throw new Error(response.data)
}
const responseData = JSON.parse(response.data)
Expand Down

0 comments on commit 169c1ba

Please sign in to comment.