Skip to content

Commit 25b47d0

Browse files
committed
fix import
1 parent cc3a5b3 commit 25b47d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { withTags } from "./components/index.js";
2828
import RedisModule from "ioredis";
2929

3030
/** BEGIN EXTERNAL PLUGINS */
31-
import { FastifyIP } from "fastify-ip";
31+
import fastifyIp from "fastify-ip";
3232
import cors from "@fastify/cors";
3333
import FastifyAuthProvider from "@fastify/auth";
3434
import fastifyStatic from "@fastify/static";
@@ -291,7 +291,7 @@ async function init(prettyPrint: boolean = false, initClients: boolean = true) {
291291
app.redisClient = new RedisModule.default(app.secretConfig.redis_url);
292292
}
293293
if (isRunningInLambda) {
294-
app.register(FastifyIP, {
294+
app.register(fastifyIp.FastifyIP, {
295295
order: ["x-forwarded-for"],
296296
strict: true,
297297
isAWS: false,

0 commit comments

Comments
 (0)