Skip to content

Commit

Permalink
Fixed one minor error
Browse files Browse the repository at this point in the history
  • Loading branch information
parauliya committed Jan 7, 2020
1 parent f90bfae commit b275271
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions db/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,13 @@ func insertActionList(ctx context.Context, db *sql.DB, yamlData string, id uuid.
}

// InsertIntoWfDataTable : Insert ephemeral data in workflow_data table
func InsertIntoWfDataTable(ctx context.Context, db *sql.DB, req *pb.UpdateWorkflowDataRequest, index int) error {
func InsertIntoWfDataTable(ctx context.Context, db *sql.DB, req *pb.UpdateWorkflowDataRequest) error {
version, err := getLatestVersionWfData(ctx, db, req.GetWorkflowID())
if err != nil {
return err
}

//increment the version
version = version + 1
tx, err := db.BeginTx(ctx, &sql.TxOptions{Isolation: sql.LevelSerializable})
if err != nil {
return errors.Wrap(err, "BEGIN transaction")
Expand All @@ -205,7 +206,7 @@ func InsertIntoWfDataTable(ctx context.Context, db *sql.DB, req *pb.UpdateWorkfl
return nil
}

func GetfromWfDataTable(ctx context.Context, db *sql.DB, id string, changeIndex int) ([]byte, error) {
func GetfromWfDataTable(ctx context.Context, db *sql.DB, id string) ([]byte, error) {

version, err := getLatestVersionWfData(ctx, db, id)
if err != nil {
Expand Down

0 comments on commit b275271

Please sign in to comment.