Skip to content

Commit

Permalink
🐞 fix (MUNify): remove email sending alltogether
Browse files Browse the repository at this point in the history
branch: deployment
  • Loading branch information
m1212e committed Mar 8, 2024
1 parent caad5dd commit 1356913
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions chase/backend/src/routes/importexport/importexport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 1356913

Please sign in to comment.