We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd7e468 + f28beb4 commit c90b545Copy full SHA for c90b545
src/graphql/schemas/resolvers/hypercertResolver.ts
@@ -80,7 +80,6 @@ class HypercertResolver extends HypercertBaseResolver {
80
81
@FieldResolver()
82
async orders(@Root() hypercert: Hypercert) {
83
- console.log(hypercert.hypercert_id);
84
if (!hypercert.id || !hypercert.hypercert_id) {
85
return;
86
}
@@ -175,9 +174,10 @@ class HypercertResolver extends HypercertBaseResolver {
175
174
count: ordersCount || 0,
176
};
177
} catch (e) {
178
- throw new Error(
+ console.error(
179
`[HypercertResolver::orders] Error fetching orders for ${hypercert.hypercert_id}: ${(e as Error).toString()}`,
180
);
+ return defaultValue;
181
182
183
0 commit comments