Fix fulfill missing upload

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-04-02 11:54:48 +02:00
parent 1988d64787
commit fd9442f6a3
7 changed files with 110 additions and 7 deletions

View File

@@ -3579,6 +3579,7 @@ input RequestEvidenceInput {
input FulfillEvidenceInput {
evidenceId: ID!
name: String
file: Upload
url: String
}
@@ -20868,7 +20869,7 @@ func (ec *executionContext) unmarshalInputFulfillEvidenceInput(ctx context.Conte
asMap[k] = v
}
fieldsInOrder := [...]string{"evidenceId", "file", "url"}
fieldsInOrder := [...]string{"evidenceId", "name", "file", "url"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
@@ -20882,6 +20883,13 @@ func (ec *executionContext) unmarshalInputFulfillEvidenceInput(ctx context.Conte
return it, err
}
it.EvidenceID = data
case "name":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Name = data
case "file":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file"))
data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)