@@ -948,6 +948,7 @@ input RequestEvidenceInput {
|
||||
|
||||
input FulfillEvidenceInput {
|
||||
evidenceId: ID!
|
||||
name: String
|
||||
file: Upload
|
||||
url: String
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -321,6 +321,7 @@ type FrameworkEdge struct {
|
||||
|
||||
type FulfillEvidenceInput struct {
|
||||
EvidenceID gid.GID `json:"evidenceId"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
File *graphql.Upload `json:"file,omitempty"`
|
||||
URL *string `json:"url,omitempty"`
|
||||
}
|
||||
|
||||
@@ -750,10 +750,11 @@ func (r *mutationResolver) FulfillEvidence(ctx context.Context, input types.Fulf
|
||||
|
||||
if input.File != nil {
|
||||
req.File = input.File.File
|
||||
req.Filename = &input.File.Filename
|
||||
}
|
||||
|
||||
if input.URL != nil {
|
||||
req.URL = *input.URL
|
||||
req.URL = input.URL
|
||||
}
|
||||
|
||||
evidence, err := svc.Evidences.Fulfill(ctx, req)
|
||||
|
||||
Reference in New Issue
Block a user