Skip to content

Commit

Permalink
refactor: createTime as string
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogge committed Jul 1, 2024
1 parent 5eea80b commit b358ec9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/src/graphql/models/RoomModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -41,8 +41,8 @@ export class OpenRoom {
@Field()
meetingName: string

@Field(() => Int)
startTime: number
@Field(() => String)
startTime: string

@Field(() => Int)
participantCount: number
Expand Down
6 changes: 3 additions & 3 deletions backend/src/graphql/resolvers/RoomResolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ describe('RoomResolver', () => {
meetingName: 'Dreammall Entwicklung',
meetingID: 'Dreammall-Entwicklung',
participantCount: 0,
startTime: 1718189,
startTime: '1718189',
attendees: [],
joinLink: 'https://my-link',
},
Expand Down Expand Up @@ -650,7 +650,7 @@ describe('RoomResolver', () => {
meetingName: 'Dreammall Entwicklung',
meetingID: 'Dreammall-Entwicklung',
participantCount: 0,
startTime: 1718189,
startTime: '1718189',
joinLink: 'https://my-link',
attendees: [
{
Expand Down Expand Up @@ -754,7 +754,7 @@ describe('RoomResolver', () => {
meetingName: 'Dreammall Entwicklung',
meetingID: 'Dreammall-Entwicklung',
participantCount: 0,
startTime: 1718189,
startTime: '1718189',
joinLink: 'https://my-link',
attendees: [
{
Expand Down

0 comments on commit b358ec9

Please sign in to comment.