Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (e *EventHandlerCreateRuns) genRunList(ctx context.Context, dataList *dataL
res := make([]*Run, 0)
// only contains ws data model implement submissionType is filePath
if len(event.DataModelRowIDs) == 0 {
if event.SubmisstionType != consts.FilePathTypeSubmission {
if event.SubmissionType != consts.FilePathTypeSubmission {
return nil, apperrors.NewInternalError(fmt.Errorf("only submissionType is filepath when with no datamodel"))
}
for name, vInputs := range event.InputsTemplate {
Expand Down Expand Up @@ -108,7 +108,7 @@ func (e *EventHandlerCreateRuns) genRunList(ctx context.Context, dataList *dataL
}

func (e *EventHandlerCreateRuns) genDataList(ctx context.Context, event *submission.EventCreateRuns) (*dataList, error) {
wsModelData, err := e.genWsModelData(ctx, event.WorkspaceID, event.InputsTemplate, event.SubmisstionType)
wsModelData, err := e.genWsModelData(ctx, event.WorkspaceID, event.InputsTemplate, event.SubmissionType)
if err != nil {
return nil, err
}
Expand Down
4 changes: 2 additions & 2 deletions internal/context/submission/domain/submission/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ type EventCreateRuns struct {
SubmissionID string
InputsTemplate map[string]interface{}
OutputsTemplate map[string]interface{}
SubmisstionType string // filePath or dataModel
SubmissionType string // filePath or dataModel
DataModelID *string
DataModelRowIDs []string

Expand All @@ -167,7 +167,7 @@ func NewEventCreateRuns(workspaceID, submissionID, submissionType string, inputs
return &EventCreateRuns{
WorkspaceID: workspaceID,
SubmissionID: submissionID,
SubmisstionType: submissionType,
SubmissionType: submissionType,
InputsTemplate: inputs,
OutputsTemplate: outputs,
DataModelID: dataModelID,
Expand Down