Fix capture exception for metadata and core (#3335)

This commit is contained in:
Weiko
2024-01-09 17:46:16 +01:00
committed by GitHub
parent ebf7688e3d
commit 6c00aa92a4
9 changed files with 107 additions and 79 deletions

View File

@ -34,7 +34,7 @@ import {
} from 'src/workspace/workspace-query-runner/jobs/call-webhook-jobs.job';
import { parseResult } from 'src/workspace/workspace-query-runner/utils/parse-result.util';
import { ExceptionHandlerService } from 'src/integrations/exception-handler/exception-handler.service';
import { globalExceptionHandler } from 'src/filters/utils/global-exception-handler.util';
import { handleExceptionAndConvertToGraphQLError } from 'src/filters/utils/global-exception-handler.util';
import { WorkspaceQueryRunnerOptions } from './interfaces/query-runner-optionts.interface';
import {
@ -72,7 +72,7 @@ export class WorkspaceQueryRunnerService {
return this.parseResult<IConnection<Record>>(result, targetTableName, '');
} catch (exception) {
const error = globalExceptionHandler(
const error = handleExceptionAndConvertToGraphQLError(
exception,
this.exceptionHandlerService,
);
@ -106,7 +106,7 @@ export class WorkspaceQueryRunnerService {
return parsedResult?.edges?.[0]?.node;
} catch (exception) {
const error = globalExceptionHandler(
const error = handleExceptionAndConvertToGraphQLError(
exception,
this.exceptionHandlerService,
);
@ -141,7 +141,7 @@ export class WorkspaceQueryRunnerService {
return parsedResults;
} catch (exception) {
const error = globalExceptionHandler(
const error = handleExceptionAndConvertToGraphQLError(
exception,
this.exceptionHandlerService,
);
@ -185,7 +185,7 @@ export class WorkspaceQueryRunnerService {
return parsedResults?.[0];
} catch (exception) {
const error = globalExceptionHandler(
const error = handleExceptionAndConvertToGraphQLError(
exception,
this.exceptionHandlerService,
);
@ -220,7 +220,7 @@ export class WorkspaceQueryRunnerService {
return parsedResults?.[0];
} catch (exception) {
const error = globalExceptionHandler(
const error = handleExceptionAndConvertToGraphQLError(
exception,
this.exceptionHandlerService,
);
@ -255,7 +255,7 @@ export class WorkspaceQueryRunnerService {
return parsedResults;
} catch (exception) {
const error = globalExceptionHandler(
const error = handleExceptionAndConvertToGraphQLError(
exception,
this.exceptionHandlerService,
);
@ -293,7 +293,7 @@ export class WorkspaceQueryRunnerService {
return parsedResults;
} catch (exception) {
const error = globalExceptionHandler(
const error = handleExceptionAndConvertToGraphQLError(
exception,
this.exceptionHandlerService,
);