Skip to content

Commit

Permalink
fix: fixing opensearch imports for comments Shuffle/Shuffle#1016
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0elliot committed Jul 29, 2023
1 parent 6939417 commit 6632e15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions db-connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -5456,6 +5456,16 @@ func SetWorkflow(ctx context.Context, workflow Workflow, id string, optionalEdit
workflow.Created = timeNow
}

for actionIndex, _ := range workflow.Comments {
workflow.Comments[actionIndex].Position.X = float64(workflow.Comments[actionIndex].Position.X)
workflow.Comments[actionIndex].Position.Y = float64(workflow.Comments[actionIndex].Position.Y)
}

for actionIndex, _ := range workflow.Actions {
workflow.Actions[actionIndex].Position.X = float64(workflow.Actions[actionIndex].Position.X)
workflow.Actions[actionIndex].Position.Y = float64(workflow.Actions[actionIndex].Position.Y)
}

if len(optionalEditedSecondsOffset) > 0 {
workflow.Edited += int64(optionalEditedSecondsOffset[0])
}
Expand Down

0 comments on commit 6632e15

Please sign in to comment.