From 605451e8a173ad67170f85437dd5935aa2d4321e Mon Sep 17 00:00:00 2001 From: Roman Nebel Date: Wed, 25 Oct 2023 18:23:32 +0200 Subject: [PATCH] Remove logs from diploma --- src/modules/apiRequests/getDiploma/getDiploma.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/apiRequests/getDiploma/getDiploma.js b/src/modules/apiRequests/getDiploma/getDiploma.js index 8545903..b422432 100644 --- a/src/modules/apiRequests/getDiploma/getDiploma.js +++ b/src/modules/apiRequests/getDiploma/getDiploma.js @@ -41,8 +41,6 @@ async function getDiploma({ req, res }) { if (params[key] === undefined) delete params[key]; } - log.debug("Init params: ", params) - const requests = [ getDBRequest("getUserInfo", { query: { id: userId }, @@ -85,16 +83,12 @@ async function getDiploma({ req, res }) { returns: ["lang", "isColor", "isMascot", "isProgress", "isPublic"], }); - log.debug("Cert Data: ", certData) - if (params.lang === undefined) params.lang = certData?.lang || moduleData.lang; if (params.isColor === undefined) params.isColor = certData?.isColor || false; if (params.isMascot === undefined) params.isMascot = certData.isMascot === undefined ? true : certData?.isMascot; if (params.isProgress === undefined) params.isProgress = certData.isProgress === undefined ? true : certData?.isProgress; if (params.isPublic === undefined) params.isPublic = certData?.isPublic || false; - log.debug("Result params: ", params); - getDBRequest("setDiploma", { query: { id: certId }, data: params,