style: auto format whole project
This commit is contained in:
@@ -32,13 +32,13 @@ const createFlow = async (
|
||||
type: 'trigger',
|
||||
position: 1,
|
||||
appKey,
|
||||
connectionId
|
||||
connectionId,
|
||||
});
|
||||
|
||||
await Step.query().insert({
|
||||
flowId: flow.id,
|
||||
type: 'action',
|
||||
position: 2
|
||||
position: 2,
|
||||
});
|
||||
|
||||
return flow;
|
||||
|
@@ -18,7 +18,9 @@ const resetConnection = async (
|
||||
})
|
||||
.throwIfNotFound();
|
||||
|
||||
if (!connection.formattedData) { return null; }
|
||||
if (!connection.formattedData) {
|
||||
return null;
|
||||
}
|
||||
|
||||
connection = await connection.$query().patchAndFetch({
|
||||
formattedData: { screenName: connection.formattedData.screenName },
|
||||
|
@@ -1,6 +1,10 @@
|
||||
import Context from '../../types/express/context';
|
||||
|
||||
const getCurrentUser = async (_parent: unknown, _params: unknown, context: Context) => {
|
||||
const getCurrentUser = async (
|
||||
_parent: unknown,
|
||||
_params: unknown,
|
||||
context: Context
|
||||
) => {
|
||||
return context.currentUser;
|
||||
};
|
||||
|
||||
|
@@ -13,8 +13,8 @@ const getExecution = async (
|
||||
.$relatedQuery('executions')
|
||||
.withGraphFetched({
|
||||
flow: {
|
||||
steps: true
|
||||
}
|
||||
steps: true,
|
||||
},
|
||||
})
|
||||
.findById(params.executionId)
|
||||
.throwIfNotFound();
|
||||
|
@@ -13,12 +13,12 @@ const getFlows = async (_parent: unknown, params: Params, context: Context) => {
|
||||
const flowsQuery = context.currentUser
|
||||
.$relatedQuery('flows')
|
||||
.joinRelated({
|
||||
steps: true
|
||||
steps: true,
|
||||
})
|
||||
.withGraphFetched({
|
||||
steps: {
|
||||
connection: true
|
||||
}
|
||||
connection: true,
|
||||
},
|
||||
})
|
||||
.where((builder) => {
|
||||
if (params.connectionId) {
|
||||
|
@@ -3,7 +3,7 @@ import appConfig from '../../config/app';
|
||||
const healthcheck = () => {
|
||||
return {
|
||||
version: appConfig.version,
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export default healthcheck;
|
||||
|
Reference in New Issue
Block a user