From e1f6b363368e0f78195e063a6edef3d5785c65d9 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Sun, 12 Jan 2025 11:41:22 +0100 Subject: [PATCH] change: removed dev logging --- src/command/club/member/memberCommandHandler.ts | 1 - src/env.defaults.ts | 1 - src/helpers/newsletterHelper.ts | 5 ----- src/migrations/1735822722235-internalId.ts | 2 -- 4 files changed, 9 deletions(-) diff --git a/src/command/club/member/memberCommandHandler.ts b/src/command/club/member/memberCommandHandler.ts index 8d8e65b..d0fd59a 100644 --- a/src/command/club/member/memberCommandHandler.ts +++ b/src/command/club/member/memberCommandHandler.ts @@ -43,7 +43,6 @@ export default abstract class MemberCommandHandler { * @returns {Promise} */ static async update(updateMember: UpdateMemberCommand): Promise { - console.log(updateMember); return await dataSource .createQueryBuilder() .update(member) diff --git a/src/env.defaults.ts b/src/env.defaults.ts index 159845b..33fe53a 100644 --- a/src/env.defaults.ts +++ b/src/env.defaults.ts @@ -44,7 +44,6 @@ export function configCheck() { if (typeof MAIL_PORT != "number") throw new Error("set valid numeric value to MAIL_PORT"); if (MAIL_SECURE != "true" && MAIL_SECURE != "false") throw new Error("set 'true' or 'false' to MAIL_SECURE"); - console.log(CLUB_WEBSITE); if ( CLUB_WEBSITE != "" && !/^(http(s):\/\/.)[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/.test(CLUB_WEBSITE) diff --git a/src/helpers/newsletterHelper.ts b/src/helpers/newsletterHelper.ts index 458f854..b9215c7 100644 --- a/src/helpers/newsletterHelper.ts +++ b/src/helpers/newsletterHelper.ts @@ -132,8 +132,6 @@ export abstract class NewsletterHelper { } } - console.log(queryMemberIds); - let members = await MemberService.getAll(0, 1000); return members[0].filter((m) => queryMemberIds.includes(m.id)); @@ -212,7 +210,6 @@ export abstract class NewsletterHelper { index, `failed to send to ${rec.sendNewsletter.email}` ); - console.log("mail send", err); }); } @@ -292,7 +289,6 @@ export abstract class NewsletterHelper { index, `failed print for ${rec.lastname}, ${rec.firstname}` ); - console.log("pdf print", err); }); } @@ -329,7 +325,6 @@ export abstract class NewsletterHelper { pdfRecipients.length, "failed combining pdf" ); - console.log("pdf squash", err); }); this.formatJobEmit( diff --git a/src/migrations/1735822722235-internalId.ts b/src/migrations/1735822722235-internalId.ts index 9468b61..40aacca 100644 --- a/src/migrations/1735822722235-internalId.ts +++ b/src/migrations/1735822722235-internalId.ts @@ -19,7 +19,6 @@ export class InternalId1735822722235 implements MigrationInterface { ); // let memberships = await queryRunner.manager.getRepository(membership).find(); - // console.log(memberships); // let internalIds = memberships.reduce<{ [key: number]: Array }>((acc, cur) => { // let memberId = cur.memberId; // let setIds = acc[memberId] ?? []; @@ -30,7 +29,6 @@ export class InternalId1735822722235 implements MigrationInterface { // return acc; // }, {}); - // console.log(internalIds); // for (const [id, value] of Object.entries(internalIds)) { // const ids = value.filter((v) => v != null).join(", "); // if (ids) {