alkem-io / server

Core server in the Alkemio platform, offering a GraphQL api for interacting with the logical domain model.
http://alkem.io
European Union Public License 1.2
24 stars 4 forks source link

LicensePlan creation fails #4108

Closed Comoque1 closed 3 months ago

Comoque1 commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to http://localhost:3000/graphql
  2. Perform the following mutation
    mutation createLicensePlan($planData: CreateLicensePlanOnLicensingInput!) {
    createLicensePlan(planData: $planData) {
    id
    enabled
    isFree
    name
    pricePerMonth    
    requiresContactSupport
    requiresPaymentMethod
    sortOrder
    trialEnabled
    }
    }
    {
    "planData": {
    "licensingID": "97f798ed-254a-4a31-a2c4-89a7e344f7ff",
    "name": "tes2t"    
    }
    }
  3. Error is thrown: "message": "Field 'licenseCredential' doesn't have a default value",
  4. See error image.png

Expected behavior License plan is created successfully.

Comoque1 commented 3 months ago

Tested OK on DEV env.

image.png image.png