From 70ae5d5479264b1a7d21d16068e76cae59c15c7e Mon Sep 17 00:00:00 2001 From: nael Date: Sun, 23 Jun 2024 13:01:45 +0200 Subject: [PATCH] :bug: Adding --- .../src/ticketing/attachment/services/attachment.service.ts | 1 - .../api/src/ticketing/comment/services/comment.service.ts | 4 ---- 2 files changed, 5 deletions(-) diff --git a/packages/api/src/ticketing/attachment/services/attachment.service.ts b/packages/api/src/ticketing/attachment/services/attachment.service.ts index b8ae176de..a106443c1 100644 --- a/packages/api/src/ticketing/attachment/services/attachment.service.ts +++ b/packages/api/src/ticketing/attachment/services/attachment.service.ts @@ -2,7 +2,6 @@ import { Injectable } from '@nestjs/common'; import { PrismaService } from '@@core/prisma/prisma.service'; import { LoggerService } from '@@core/logger/logger.service'; import { v4 as uuidv4 } from 'uuid'; -import { throwTypedError, UnifiedTicketingError } from '@@core/utils/errors'; import { WebhookService } from '@@core/webhook/webhook.service'; import { UnifiedAttachmentInput, diff --git a/packages/api/src/ticketing/comment/services/comment.service.ts b/packages/api/src/ticketing/comment/services/comment.service.ts index b58b9be83..d0a81cddc 100644 --- a/packages/api/src/ticketing/comment/services/comment.service.ts +++ b/packages/api/src/ticketing/comment/services/comment.service.ts @@ -123,10 +123,6 @@ export class CommentService { remote_id: true, }, }); - if (!ticket) - throw new ReferenceError( - 'ticket does not exist for the comment you try to create', - ); const resp: ApiResponse = await service.addComment( desunifiedObject, linkedUserId,