From 1356913c81331457fc7c5737844b97cf375624a3 Mon Sep 17 00:00:00 2001 From: m1212e <14091540+m1212e@users.noreply.github.com> Date: Fri, 8 Mar 2024 02:54:47 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix=20(MUNify):=20remove=20email?= =?UTF-8?q?=20sending=20alltogether=20branch:=20deployment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/routes/importexport/importexport.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/chase/backend/src/routes/importexport/importexport.ts b/chase/backend/src/routes/importexport/importexport.ts index 0285f0d4..d419437e 100644 --- a/chase/backend/src/routes/importexport/importexport.ts +++ b/chase/backend/src/routes/importexport/importexport.ts @@ -38,7 +38,7 @@ export const importexport = new Elysia() const result = await db.$transaction( async (tx) => { return Promise.allSettled( - body.map(async (datasetUser, datasetUserIndex) => { + body.map(async (datasetUser) => { let userId = ( await tx.email.findFirst({ where: { @@ -100,14 +100,14 @@ export const importexport = new Elysia() //TODO: report back errors in sending emails to the frontend in structured way // the whole sending process should be unified in a function outside the handlers - setTimeout(() => { - sendCredentialCreationEmail({ - email: datasetUser["E-Mail-Adresse 1"], - locale: "de", - redirectLink: `${appConfiguration.email.CREDENTIAL_CREATE_REDIRECT_URL}?token=${token}&email=${datasetUser["E-Mail-Adresse 1"]}`, - }); - console.log("Sent email to", datasetUser["E-Mail-Adresse 1"]); - }, 1000 * datasetUserIndex); + // setTimeout(() => { + // sendCredentialCreationEmail({ + // email: datasetUser["E-Mail-Adresse 1"], + // locale: "de", + // redirectLink: `${appConfiguration.email.CREDENTIAL_CREATE_REDIRECT_URL}?token=${token}&email=${datasetUser["E-Mail-Adresse 1"]}`, + // }); + // console.log("Sent email to", datasetUser["E-Mail-Adresse 1"]); + // }, 1000 * datasetUserIndex); } let conferenceMemberId = ( await tx.conferenceMember.findFirst({