From 8e34b0563a79539d782be621d0c21c3748bab0d4 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 28 Sep 2025 22:32:49 +0200 Subject: [PATCH] fix(icons/app): changing the variable name for one not already declared - The name is now fastify2 because fastify was already declared --- src/icons/src/app.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/icons/src/app.ts b/src/icons/src/app.ts index 1d4bb30..aeb9498 100644 --- a/src/icons/src/app.ts +++ b/src/icons/src/app.ts @@ -37,10 +37,10 @@ const app: FastifyPluginAsync = async ( // The use of fastify-plugin is required to be able // to export the decorators to the outer scope - void fastify.register(fp(async (fastify) => { + void fastify.register(fp(async (fastify2) => { const image_store = process.env.USER_ICONS_STORE ?? '/tmp/icons'; - fastify.decorate('image_store', image_store); - await mkdir(fastify.image_store, { recursive: true }); + fastify2.decorate('image_store', image_store); + await mkdir(fastify2.image_store, { recursive: true }); })); };