feat: Implement initial version of getExecutions query
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
d4bef44b93
commit
343b360303
@@ -3,6 +3,7 @@ import Base from './base';
|
||||
import Connection from './connection';
|
||||
import Flow from './flow';
|
||||
import Step from './step';
|
||||
import Execution from './execution';
|
||||
import bcrypt from 'bcrypt';
|
||||
|
||||
class User extends Base {
|
||||
@@ -55,6 +56,18 @@ class User extends Base {
|
||||
to: 'steps.flow_id',
|
||||
},
|
||||
},
|
||||
executions: {
|
||||
relation: Base.ManyToManyRelation,
|
||||
modelClass: Execution,
|
||||
join: {
|
||||
from: 'users.id',
|
||||
through: {
|
||||
from: 'flows.user_id',
|
||||
to: 'flows.id',
|
||||
},
|
||||
to: 'executions.flow_id',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
login(password: string) {
|
||||
|
Reference in New Issue
Block a user