Remove the console.log, remove unused Int.

This commit is contained in:
elweyn 2021-12-21 15:39:53 +01:00
parent 84b81f6dc4
commit 967e47908a
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import { ObjectType, Field, Int } from 'type-graphql'
import { ObjectType, Field } from 'type-graphql'
@ObjectType()
export class CreatePendingCreations {

View File

@ -75,13 +75,11 @@ export class AdminResolver {
const failedCreation: string[] = []
for (const pendingCreation of pendingCreations) {
await this.createPendingCreation(pendingCreation)
.then((result) => {
console.log('Successfuly created ' + JSON.stringify(pendingCreation) + ' ' + result)
.then(() => {
successfulCreation.push(pendingCreation.email)
success = true
})
.catch(() => {
console.log('Failed to creat ' + JSON.stringify(pendingCreation))
failedCreation.push(pendingCreation.email)
})
}