mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove all console logs
This commit is contained in:
parent
0c5c59224b
commit
06983d786b
@ -233,7 +233,6 @@ export default {
|
||||
this.$emit('remove-confirm-result', item, 'remove')
|
||||
},
|
||||
editCreationUserTable(row, rowItem) {
|
||||
console.log(row.index)
|
||||
if (!row.detailsShowing) {
|
||||
this.creationUserData = rowItem
|
||||
} else {
|
||||
@ -255,8 +254,7 @@ export default {
|
||||
this.creationUserData.memo = data.memo
|
||||
this.creationUserData.moderator = data.moderator
|
||||
|
||||
data.row.toggleDetails()
|
||||
|
||||
data.row.toggleDetails()
|
||||
},
|
||||
updateUserData(rowItem, newCreation) {
|
||||
rowItem.creation = newCreation
|
||||
|
||||
@ -62,13 +62,11 @@ export class AdminResolver {
|
||||
async updatePendingCreation(
|
||||
@Args() { id, email, amount, memo, creationDate, moderator }: UpdatePendingCreationArgs,
|
||||
): Promise<UpdatePendingCreation> {
|
||||
console.log('UpdatePendingCreationArgs', { id, email, amount, memo, creationDate, moderator })
|
||||
const userRepository = getCustomRepository(UserRepository)
|
||||
const user = await userRepository.findByEmail(email)
|
||||
|
||||
const pendingCreationRepository = getCustomRepository(PendingCreationRepository)
|
||||
const updatedCreation = await pendingCreationRepository.findOneOrFail({ id })
|
||||
console.log('updatedCreation', updatedCreation)
|
||||
|
||||
if (updatedCreation.userId !== user.id)
|
||||
throw new Error('user of the pending creation and send user does not correspond')
|
||||
@ -86,7 +84,6 @@ export class AdminResolver {
|
||||
result.moderator = updatedCreation.moderator
|
||||
result.creation = await getUserCreations(user.id)
|
||||
|
||||
console.log('result', result)
|
||||
return result
|
||||
|
||||
// const creations = await getUserCreations(user.id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user