Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(backend): createTime as string #1312

Merged
merged 3 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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