We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eaf1b6 commit e8057dbCopy full SHA for e8057db
frameworks/TypeScript/elysia/src/db-handlers.ts
@@ -8,7 +8,7 @@ export function rand() {
8
9
function parseQueriesNumber(q?: string) {
10
// NaN is falsy, fallback to one.
11
- return Math.min(+(q as string) || 1, 500);
+ return Math.min(+q! || 1, 500);
12
}
13
14
export const dbHandlers = new Elysia()
0 commit comments