chore: Expose connection with step type instead of only connectionId
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
11bdbf1727
commit
a58411ee99
@@ -1,5 +1,6 @@
|
||||
import Base from './base';
|
||||
import Flow from './flow';
|
||||
import Connection from './connection';
|
||||
|
||||
enum StepEnumType {
|
||||
'trigger',
|
||||
@@ -37,9 +38,17 @@ class Step extends Base {
|
||||
relation: Base.BelongsToOneRelation,
|
||||
modelClass: Flow,
|
||||
join: {
|
||||
from: 'step.flow_id',
|
||||
from: 'steps.flow_id',
|
||||
to: 'flows.id',
|
||||
},
|
||||
},
|
||||
connection: {
|
||||
relation: Base.HasOneRelation,
|
||||
modelClass: Connection,
|
||||
join: {
|
||||
from: 'steps.connection_id',
|
||||
to: 'connections.id'
|
||||
},
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user