Skip to content

Commit

Permalink
Remove logs from diploma
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-nebel committed Oct 25, 2023
1 parent ca7839d commit 605451e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/modules/apiRequests/getDiploma/getDiploma.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 605451e

Please sign in to comment.