Skip to content

Commit e149558

Browse files
committed
chore: Use null instead of undefined.
1 parent e5af0ba commit e149558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ declare module "fastify" {
1919
export async function createApp(context: AppContext): Promise<FastifyInstance> {
2020
const app = Fastify();
2121
void app.register(async (app) => {
22-
app.decorateRequest("ctx", undefined);
22+
app.decorateRequest("ctx", null);
2323
app.addHook("preHandler", async (req) => {
2424
req.ctx = await createRequestContext(context, req);
2525
});

0 commit comments

Comments
 (0)