fix update of open creations

This commit is contained in:
Moriz Wahl 2022-01-10 13:25:35 +01:00
parent 933275c367
commit 814f9e18dd
2 changed files with 7 additions and 9 deletions

View File

@ -42,15 +42,13 @@ export default {
{ key: 'lastName', label: this.$t('lastname') }, { key: 'lastName', label: this.$t('lastname') },
{ {
key: 'creation', key: 'creation',
// label: this.$t('open_creation') + 'Jan | Feb | März', label: [
label: this.$moment().subtract(2, 'month').format('MMM'),
this.$moment().subtract(2, 'month').format('MMM') + this.$moment().subtract(1, 'month').format('MMM'),
' | ' +
this.$moment().subtract(1, 'month').format('MMM') +
' | ' +
this.$moment().format('MMM'), this.$moment().format('MMM'),
].join(' | '),
formatter: (value, key, item) => { formatter: (value, key, item) => {
return String(value[0]) + ` | ` + String(value[1]) + ` | ` + String(value[2]) return value.join(' | ')
}, },
}, },
{ key: 'show_details', label: this.$t('details') }, { key: 'show_details', label: this.$t('details') },

View File

@ -65,9 +65,9 @@ export class AdminResolver {
loginPendingTaskAdmin.memo = memo loginPendingTaskAdmin.memo = memo
loginPendingTaskAdmin.moderator = moderator loginPendingTaskAdmin.moderator = moderator
loginPendingTasksAdminRepository.save(loginPendingTaskAdmin) await loginPendingTasksAdminRepository.save(loginPendingTaskAdmin)
} }
return await getUserCreations(user.id) return getUserCreations(user.id)
} }
@Authorized([RIGHTS.CREATE_PENDING_CREATION]) @Authorized([RIGHTS.CREATE_PENDING_CREATION])