From 84b81f6dc4eda7872211ee395132b18fcc4ba64b Mon Sep 17 00:00:00 2001 From: elweyn Date: Tue, 21 Dec 2021 14:38:18 +0100 Subject: [PATCH] Remove console.log and commented code. --- admin/src/components/CreationFormular.vue | 12 ------- backend/src/graphql/resolver/AdminResolver.ts | 31 ------------------- 2 files changed, 43 deletions(-) diff --git a/admin/src/components/CreationFormular.vue b/admin/src/components/CreationFormular.vue index 02b8f1ad8..0fd8b6055 100644 --- a/admin/src/components/CreationFormular.vue +++ b/admin/src/components/CreationFormular.vue @@ -217,17 +217,6 @@ export default { moderator: Number(this.$store.state.moderator.id), }) }) - console.log('submitObj', this.submitObj) - // this.submitObj = [ - // { - // item: this.itemsMassCreation, - // email: this.item.email, - // creationDate: this.radioSelected.long, - // amount: this.value, - // memo: this.text, - // moderator: this.$store.state.moderator.id, - // }, - // ] // eslint-disable-next-line no-console console.log('MehrfachSCHÖPFUNG ABSENDEN FÜR >> ' + i + ' Mitglieder') this.$apollo @@ -239,7 +228,6 @@ export default { fetchPolicy: 'no-cache', }) .then((result) => { - console.log('result', result) this.$store.commit( 'openCreationsPlus', result.data.createPendingCreations.successfulCreation.length, diff --git a/backend/src/graphql/resolver/AdminResolver.ts b/backend/src/graphql/resolver/AdminResolver.ts index 5b5b463f0..bd58e4364 100644 --- a/backend/src/graphql/resolver/AdminResolver.ts +++ b/backend/src/graphql/resolver/AdminResolver.ts @@ -85,37 +85,6 @@ export class AdminResolver { failedCreation.push(pendingCreation.email) }) } - // await Promise.all( - // pendingCreations.map(async (pendingCreation) => { - // await this.createPendingCreation(pendingCreation) - // .then((result) => { - // console.log('Successfuly created ' + JSON.stringify(pendingCreation) + ' ' + result) - // successfulCreation.push(pendingCreation.email) - // success = true - // }) - // .catch(() => { - // console.log('Failed to creat ' + JSON.stringify(pendingCreation)) - // failedCreation.push(pendingCreation.email) - // }) - // }), - // ) - // await pendingCreations.forEach(async (pendingCreation) => { - // await this.createPendingCreation(pendingCreation) - // .then((result) => { - // console.log('Successfuly created ' + JSON.stringify(pendingCreation) + ' ' + result) - // successfulCreation.push(pendingCreation.email) - // success = true - // }) - // .catch(() => { - // console.log('Failed to creat ' + JSON.stringify(pendingCreation)) - // failedCreation.push(pendingCreation.email) - // }) - // }) - console.log('createPendingCreations', { - success, - successfulCreation, - failedCreation, - }) return { success, successfulCreation,