Skip to content

Commit 944b8ab

Browse files
committed
Fix Format
1 parent 9f2c194 commit 944b8ab

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

packages/runtime/src/plugins/useDelegationPlanDebug.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export function useDelegationPlanDebug<
2323
}) {
2424
const planId = fetchAPI.crypto.randomUUID();
2525
const planLogger = logger.child({ planId, typeName });
26-
const delegationPlanStartLogger = planLogger.child('delegation-plan-start');
26+
const delegationPlanStartLogger = planLogger.child(
27+
'delegation-plan-start',
28+
);
2729
delegationPlanStartLogger.debug(() => {
2830
const logObj: Record<string, any> = {};
2931
if (variables && Object.keys(variables).length) {
@@ -49,15 +51,17 @@ export function useDelegationPlanDebug<
4951
});
5052
return ({ delegationPlan }) => {
5153
const delegationPlanDoneLogger = logger.child('delegation-plan-done');
52-
delegationPlanDoneLogger.debug(() => delegationPlan.map((plan) => {
53-
const planObj: Record<string, string> = {};
54-
for (const [subschema, selectionSet] of plan) {
55-
if (subschema.name) {
56-
planObj[subschema.name] = print(selectionSet);
54+
delegationPlanDoneLogger.debug(() =>
55+
delegationPlan.map((plan) => {
56+
const planObj: Record<string, string> = {};
57+
for (const [subschema, selectionSet] of plan) {
58+
if (subschema.name) {
59+
planObj[subschema.name] = print(selectionSet);
60+
}
5761
}
58-
}
59-
return planObj;
60-
}));
62+
return planObj;
63+
}),
64+
);
6165
};
6266
},
6367
onDelegationStageExecute({

packages/runtime/src/plugins/useSubgraphExecuteDebug.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ export function useSubgraphExecuteDebug<
1111
onYogaInit({ yoga }) {
1212
fetchAPI = yoga.fetchAPI;
1313
},
14-
onSubgraphExecute({
15-
executionRequest,
16-
logger = opts.logger,
17-
}) {
14+
onSubgraphExecute({ executionRequest, logger = opts.logger }) {
1815
const subgraphExecuteHookLogger = logger.child({
1916
subgraphExecuteId: fetchAPI.crypto.randomUUID(),
2017
});

0 commit comments

Comments
 (0)