patches v1.0.2 #39
4 changed files with 0 additions and 9 deletions
|
@ -43,7 +43,6 @@ export default abstract class MemberCommandHandler {
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
static async update(updateMember: UpdateMemberCommand): Promise<void> {
|
static async update(updateMember: UpdateMemberCommand): Promise<void> {
|
||||||
console.log(updateMember);
|
|
||||||
return await dataSource
|
return await dataSource
|
||||||
.createQueryBuilder()
|
.createQueryBuilder()
|
||||||
.update(member)
|
.update(member)
|
||||||
|
|
|
@ -44,7 +44,6 @@ export function configCheck() {
|
||||||
if (typeof MAIL_PORT != "number") throw new Error("set valid numeric value to MAIL_PORT");
|
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");
|
if (MAIL_SECURE != "true" && MAIL_SECURE != "false") throw new Error("set 'true' or 'false' to MAIL_SECURE");
|
||||||
|
|
||||||
console.log(CLUB_WEBSITE);
|
|
||||||
if (
|
if (
|
||||||
CLUB_WEBSITE != "" &&
|
CLUB_WEBSITE != "" &&
|
||||||
!/^(http(s):\/\/.)[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/.test(CLUB_WEBSITE)
|
!/^(http(s):\/\/.)[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/.test(CLUB_WEBSITE)
|
||||||
|
|
|
@ -132,8 +132,6 @@ export abstract class NewsletterHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(queryMemberIds);
|
|
||||||
|
|
||||||
let members = await MemberService.getAll(0, 1000);
|
let members = await MemberService.getAll(0, 1000);
|
||||||
|
|
||||||
return members[0].filter((m) => queryMemberIds.includes(m.id));
|
return members[0].filter((m) => queryMemberIds.includes(m.id));
|
||||||
|
@ -212,7 +210,6 @@ export abstract class NewsletterHelper {
|
||||||
index,
|
index,
|
||||||
`failed to send to ${rec.sendNewsletter.email}`
|
`failed to send to ${rec.sendNewsletter.email}`
|
||||||
);
|
);
|
||||||
console.log("mail send", err);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -292,7 +289,6 @@ export abstract class NewsletterHelper {
|
||||||
index,
|
index,
|
||||||
`failed print for ${rec.lastname}, ${rec.firstname}`
|
`failed print for ${rec.lastname}, ${rec.firstname}`
|
||||||
);
|
);
|
||||||
console.log("pdf print", err);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -329,7 +325,6 @@ export abstract class NewsletterHelper {
|
||||||
pdfRecipients.length,
|
pdfRecipients.length,
|
||||||
"failed combining pdf"
|
"failed combining pdf"
|
||||||
);
|
);
|
||||||
console.log("pdf squash", err);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.formatJobEmit(
|
this.formatJobEmit(
|
||||||
|
|
|
@ -19,7 +19,6 @@ export class InternalId1735822722235 implements MigrationInterface {
|
||||||
);
|
);
|
||||||
|
|
||||||
// let memberships = await queryRunner.manager.getRepository(membership).find();
|
// let memberships = await queryRunner.manager.getRepository(membership).find();
|
||||||
// console.log(memberships);
|
|
||||||
// let internalIds = memberships.reduce<{ [key: number]: Array<string> }>((acc, cur) => {
|
// let internalIds = memberships.reduce<{ [key: number]: Array<string> }>((acc, cur) => {
|
||||||
// let memberId = cur.memberId;
|
// let memberId = cur.memberId;
|
||||||
// let setIds = acc[memberId] ?? [];
|
// let setIds = acc[memberId] ?? [];
|
||||||
|
@ -30,7 +29,6 @@ export class InternalId1735822722235 implements MigrationInterface {
|
||||||
// return acc;
|
// return acc;
|
||||||
// }, {});
|
// }, {});
|
||||||
|
|
||||||
// console.log(internalIds);
|
|
||||||
// for (const [id, value] of Object.entries(internalIds)) {
|
// for (const [id, value] of Object.entries(internalIds)) {
|
||||||
// const ids = value.filter((v) => v != null).join(", ");
|
// const ids = value.filter((v) => v != null).join(", ");
|
||||||
// if (ids) {
|
// if (ids) {
|
||||||
|
|
Loading…
Reference in a new issue