fix(icons/app): changing the variable name for one not already declared

- The name is now fastify2 because fastify was already declared
This commit is contained in:
Raphael 2025-09-28 22:32:49 +02:00
parent 6f42fe6929
commit 8e34b0563a
No known key found for this signature in database

View file

@ -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 });
}));
};