mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 21:25:27 +00:00
bugfix: fixed issues related to linear output + misc
This commit is contained in:
parent
d946a7890a
commit
4626b56dd0
@ -109,7 +109,9 @@ func (i *Integration) CreateIssue(event *output.ResultEvent) (*filters.CreateIss
|
|||||||
"issueID": types.ToString(existingIssue.ID),
|
"issueID": types.ToString(existingIssue.ID),
|
||||||
}
|
}
|
||||||
var resp struct {
|
var resp struct {
|
||||||
LastSyncID string `json:"lastSyncId"`
|
IssueUpdate struct {
|
||||||
|
LastSyncID int `json:"lastSyncId"`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
err := i.doGraphqlRequest(ctx, existingIssueUpdateStateMutation, &resp, variables, "IssueUpdate")
|
err := i.doGraphqlRequest(ctx, existingIssueUpdateStateMutation, &resp, variables, "IssueUpdate")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -125,7 +127,9 @@ func (i *Integration) CreateIssue(event *output.ResultEvent) (*filters.CreateIss
|
|||||||
"commentCreateInput": commentInput,
|
"commentCreateInput": commentInput,
|
||||||
}
|
}
|
||||||
var resp struct {
|
var resp struct {
|
||||||
LastSyncID string `json:"lastSyncId"`
|
CommentCreate struct {
|
||||||
|
LastSyncID int `json:"lastSyncId"`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
err := i.doGraphqlRequest(ctx, commentCreateExistingTicketMutation, &resp, variables, "CommentCreate")
|
err := i.doGraphqlRequest(ctx, commentCreateExistingTicketMutation, &resp, variables, "CommentCreate")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -387,6 +391,7 @@ func (i *Integration) doGraphqlRequest(ctx context.Context, query string, v any,
|
|||||||
Errors errorsGraphql
|
Errors errorsGraphql
|
||||||
//Extensions any // Unused.
|
//Extensions any // Unused.
|
||||||
}
|
}
|
||||||
|
|
||||||
err = json.NewDecoder(resp.Body).Decode(&out)
|
err = json.NewDecoder(resp.Body).Decode(&out)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user