From b358ec9af5e26ff8ad03a1c583f6c5e1fbd57e2b Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 1 Jul 2024 13:19:26 +0200 Subject: [PATCH] refactor: createTime as string --- backend/src/graphql/models/RoomModel.ts | 6 +++--- backend/src/graphql/resolvers/RoomResolver.spec.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/src/graphql/models/RoomModel.ts b/backend/src/graphql/models/RoomModel.ts index d9032688cb..b7672252b2 100644 --- a/backend/src/graphql/models/RoomModel.ts +++ b/backend/src/graphql/models/RoomModel.ts @@ -24,7 +24,7 @@ export class OpenRoom { constructor(meeting: MeetingInfo, link: string) { this.meetingID = meeting.meetingID this.meetingName = meeting.meetingName - this.startTime = meeting.startTime + this.startTime = meeting.startTime.toString() this.participantCount = meeting.participantCount this.attendees = typeof meeting.attendees !== 'string' @@ -41,8 +41,8 @@ export class OpenRoom { @Field() meetingName: string - @Field(() => Int) - startTime: number + @Field(() => String) + startTime: string @Field(() => Int) participantCount: number diff --git a/backend/src/graphql/resolvers/RoomResolver.spec.ts b/backend/src/graphql/resolvers/RoomResolver.spec.ts index 6041b289c1..6e8a3af7e7 100644 --- a/backend/src/graphql/resolvers/RoomResolver.spec.ts +++ b/backend/src/graphql/resolvers/RoomResolver.spec.ts @@ -559,7 +559,7 @@ describe('RoomResolver', () => { meetingName: 'Dreammall Entwicklung', meetingID: 'Dreammall-Entwicklung', participantCount: 0, - startTime: 1718189, + startTime: '1718189', attendees: [], joinLink: 'https://my-link', }, @@ -650,7 +650,7 @@ describe('RoomResolver', () => { meetingName: 'Dreammall Entwicklung', meetingID: 'Dreammall-Entwicklung', participantCount: 0, - startTime: 1718189, + startTime: '1718189', joinLink: 'https://my-link', attendees: [ { @@ -754,7 +754,7 @@ describe('RoomResolver', () => { meetingName: 'Dreammall Entwicklung', meetingID: 'Dreammall-Entwicklung', participantCount: 0, - startTime: 1718189, + startTime: '1718189', joinLink: 'https://my-link', attendees: [ {