mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Change note to memo.
This commit is contained in:
parent
fd54f34855
commit
e2743b979e
@ -237,7 +237,7 @@ export default {
|
||||
email: this.item.email,
|
||||
creationDate: this.radioSelected.long,
|
||||
amount: this.value,
|
||||
note: this.text,
|
||||
memo: this.text,
|
||||
moderator: this.$store.state.moderator.id,
|
||||
},
|
||||
]
|
||||
@ -255,7 +255,7 @@ export default {
|
||||
email: this.item.email,
|
||||
creationDate: this.radioSelected.long,
|
||||
amount: Number(this.value),
|
||||
note: this.text,
|
||||
memo: this.text,
|
||||
moderator: Number(this.$store.state.moderator.id),
|
||||
}
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ export default class CreatePendingCreationArgs {
|
||||
amount: number
|
||||
|
||||
@Field(() => String)
|
||||
note: string
|
||||
memo: string
|
||||
|
||||
@Field(() => String)
|
||||
creationDate: string
|
||||
|
||||
@ -31,7 +31,7 @@ export class AdminResolver {
|
||||
|
||||
@Query(() => [Number])
|
||||
async createPendingCreation(
|
||||
@Args() { email, amount, note, creationDate, moderator }: CreatePendingCreationArgs,
|
||||
@Args() { email, amount, memo, creationDate, moderator }: CreatePendingCreationArgs,
|
||||
): Promise<number[]> {
|
||||
const userRepository = getCustomRepository(UserRepository)
|
||||
const user = await userRepository.findByEmail(email)
|
||||
@ -45,7 +45,7 @@ export class AdminResolver {
|
||||
loginPendingTaskAdmin.amount = BigInt(amount * 10000)
|
||||
loginPendingTaskAdmin.created = new Date()
|
||||
loginPendingTaskAdmin.date = creationDateObj
|
||||
loginPendingTaskAdmin.note = note
|
||||
loginPendingTaskAdmin.memo = memo
|
||||
loginPendingTaskAdmin.moderator = moderator
|
||||
|
||||
pendingCreationRepository.save(loginPendingTaskAdmin)
|
||||
|
||||
@ -16,7 +16,7 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
|
||||
\`userId\` int UNSIGNED DEFAULT 0,
|
||||
\`created\` datetime NOT NULL,
|
||||
\`date\` datetime NOT NULL,
|
||||
\`note\` text DEFAULT NULL,
|
||||
\`memo\` text DEFAULT NULL,
|
||||
\`amount\` bigint(20) NOT NULL,
|
||||
\`moderator\` int UNSIGNED DEFAULT 0,
|
||||
PRIMARY KEY (\`id\`)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user