From 6c7d0801c2b1f1a3746751f444f30d8eda6ba3d9 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Mon, 9 Jan 2023 11:05:28 +0100 Subject: [PATCH] bla --- index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index bfc9436..6b42c4f 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,4 @@ -const fastify = require('fastify')({ - logger: true, - bodyLimit: 10485760 -}) +const fastify = require('fastify')({ logger: true }) const fs = require('fs'); const path = require('path') const CryptoJS = require("crypto-js"); @@ -28,7 +25,8 @@ let MaxAmountCrepe = 10; let Supplements = ["nature", "sucre", "nutella", "confiture"]; fastify.addContentTypeParser('application/json', { - parseAs: 'string' + parseAs: 'string', + bodyLimit: 10485760 }, function(req, body, done) { try { var json = JSON.parse(body)