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)