|
|
@ -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)) {
|
|
|
|