From e71442b8294f0796974743a9d9fc0a34c38af415 Mon Sep 17 00:00:00 2001 From: caiodasilva2005 Date: Fri, 20 Dec 2024 16:08:34 -0500 Subject: [PATCH] #3074-fixed service --- src/backend/src/services/announcement.service.ts | 2 -- src/backend/tests/unmocked/users.test.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/backend/src/services/announcement.service.ts b/src/backend/src/services/announcement.service.ts index eb0d9a5f1b..28f5c8e71b 100644 --- a/src/backend/src/services/announcement.service.ts +++ b/src/backend/src/services/announcement.service.ts @@ -19,7 +19,6 @@ export default class AnnouncementService { static async createAnnouncement( text: string, usersReceivedIds: string[], - dateCreated: Date, senderName: string, slackEventId: string, slackChannelName: string, @@ -33,7 +32,6 @@ export default class AnnouncementService { userId: id })) }, - dateCreated, senderName, slackEventId, slackChannelName diff --git a/src/backend/tests/unmocked/users.test.ts b/src/backend/tests/unmocked/users.test.ts index bd0b934270..a9f1488530 100644 --- a/src/backend/tests/unmocked/users.test.ts +++ b/src/backend/tests/unmocked/users.test.ts @@ -94,7 +94,6 @@ describe('User Tests', () => { await AnnouncementService.createAnnouncement( 'test1', [testBatman.userId], - new Date(), 'Thomas Emrax', '1', 'software', @@ -103,7 +102,6 @@ describe('User Tests', () => { await AnnouncementService.createAnnouncement( 'test2', [testBatman.userId], - new Date(), 'Superman', '50', 'mechanical',