style: auto format whole project

This commit is contained in:
Ali BARIN
2022-11-05 23:57:33 +01:00
parent e338770e57
commit 475f24f661
199 changed files with 2421 additions and 1839 deletions

View File

@@ -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;

View File

@@ -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 },

View File

@@ -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;
};

View File

@@ -13,8 +13,8 @@ const getExecution = async (
.$relatedQuery('executions')
.withGraphFetched({
flow: {
steps: true
}
steps: true,
},
})
.findById(params.executionId)
.throwIfNotFound();

View File

@@ -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) {

View File

@@ -3,7 +3,7 @@ import appConfig from '../../config/app';
const healthcheck = () => {
return {
version: appConfig.version,
}
};
};
export default healthcheck;