refactor: Adjust slack list channels to use slack client

This commit is contained in:
Faruk AYDIN
2022-09-01 22:18:37 +03:00
parent 0246d48584
commit 26eee1bb63
4 changed files with 27 additions and 12 deletions

View File

@@ -10,7 +10,10 @@ type Params = {
const getData = async (_parent: unknown, params: Params, context: Context) => {
const step = await context.currentUser
.$relatedQuery('steps')
.withGraphFetched('connection, flow')
.withGraphFetched({
connection: true,
flow: true,
})
.findById(params.stepId);
if (!step) return null;