bugs and no $ in money

pull/35/head
leonnicolas 4 years ago
parent dbb30369af
commit 06e225096b
No known key found for this signature in database
GPG Key ID: 088D0743E2B65C07

@ -60,7 +60,7 @@ export class Workshop implements Lockable {
@JoinColumn({ @JoinColumn({
name: 'trainer2Id' name: 'trainer2Id'
}) })
trainer2: Participant; trainer2Id: number;
@Column({ @Column({
nullable: true, nullable: true,

@ -230,6 +230,11 @@ export default {
isLockedByMe: (parent: any, __: any, { req }: { req: any }) => isLockedByMe(parent, { req }), isLockedByMe: (parent: any, __: any, { req }: { req: any }) => isLockedByMe(parent, { req }),
isLocked: (parent: any, __: any, { req }: { req: any }) => isLocked(parent, { req }) isLocked: (parent: any, __: any, { req }: { req: any }) => isLocked(parent, { req })
}, },
InsuranceData: {
projectAllowance: (parent: any): any => {
return (parent as string)?.replace(/€\$/, '');
}
},
Mutation: { Mutation: {
createCargoBike: (_: any, { cargoBike }: { cargoBike: any }, { dataSources, req }: { dataSources: any, req: any }) => { createCargoBike: (_: any, { cargoBike }: { cargoBike: any }, { dataSources, req }: { dataSources: any, req: any }) => {
if (req.permissions.includes(Permission.WriteBike)) { if (req.permissions.includes(Permission.WriteBike)) {

Loading…
Cancel
Save