Skip to content
This repository was archived by the owner on Sep 25, 2023. It is now read-only.

Commit ef92210

Browse files
committedJul 25, 2021
fix: fixed typing in fastify middleware
1 parent f1ca5d4 commit ef92210

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎packages/fastify-krabs/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { Config } from '../utils/config/config';
66
import findTenant from '../utils/tenants/findTenant';
77
import resolveRoutes from '../utils/routes/resolve';
88

9-
type Merge<A, B> = { [K in keyof (A | B)]: K extends keyof B ? B[K] : A[K] };
10-
119
if (!currentEnv) {
1210
const warningMessage = `
1311
\u{26A0}\u{FE0F} ${chalk.bold(' Warning ')}
@@ -44,7 +42,7 @@ export default async function krabs(
4442
});
4543
}
4644

47-
const route = resolveRoutes(tenant?.name!, pathName);
45+
const route = resolveRoutes(tenant?.name as string, pathName);
4846

4947
if (route) {
5048
// @ts-ignore

0 commit comments

Comments
 (0)