Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Commit

Permalink
[TL-DYS-68] (#72)
Browse files Browse the repository at this point in the history
* TL-DYS-63

* Bugfix category and difficulty url state

* Fix isbot error
  • Loading branch information
Kevin-Umali authored Jan 1, 2024
1 parent 45a93a7 commit c7446c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/middleware/useragent-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const userAgentMiddleware = (req: Request, res: Response, next: NextFunction) =>
req.useragent = {
isMobile: deviceType === "mobile",
isDesktop: deviceType === undefined || !["wearable", "mobile"].includes(deviceType),
isBot: isBot(userAgentString),
isBot: isBot.isbot(userAgentString),
browser: result.browser.name ?? "Unknown",
version: result.browser.version ?? "Unknown",
os: result.os.name ?? "Unknown",
Expand Down
3 changes: 2 additions & 1 deletion server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"outDir": "./dist",
"sourceMap": true,
"lib": ["ES2022"],
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*", "src/__tests__/**/*.ts", "prisma/*", "@types"],
"exclude": ["node_modules", "dist"]
Expand Down

0 comments on commit c7446c4

Please sign in to comment.