indexId as Int not String

This commit is contained in:
Ulf Gebhardt 2023-07-13 12:28:54 +02:00
parent 06b15dcd5c
commit a961f88cff
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 7 additions and 7 deletions

View File

@ -257,7 +257,7 @@ describe('Message', () => {
Message: [
expect.objectContaining({
id: expect.any(String),
indexId: '0',
indexId: 0,
content: 'Some nice message to other chatting user',
senderId: 'chatting-user',
username: 'Chatting User',
@ -266,7 +266,7 @@ describe('Message', () => {
}),
expect.objectContaining({
id: expect.any(String),
indexId: '1',
indexId: 1,
content: 'A nice response message to chatting user',
senderId: 'other-chatting-user',
username: 'Other Chatting User',
@ -275,7 +275,7 @@ describe('Message', () => {
}),
expect.objectContaining({
id: expect.any(String),
indexId: '2',
indexId: 2,
content: 'And another nice message to other chatting user',
senderId: 'chatting-user',
username: 'Chatting User',
@ -303,7 +303,7 @@ describe('Message', () => {
Message: [
expect.objectContaining({
id: expect.any(String),
indexId: '1',
indexId: 1,
content: 'A nice response message to chatting user',
senderId: 'other-chatting-user',
username: 'Other Chatting User',
@ -312,7 +312,7 @@ describe('Message', () => {
}),
expect.objectContaining({
id: expect.any(String),
indexId: '2',
indexId: 2,
content: 'And another nice message to other chatting user',
senderId: 'chatting-user',
username: 'Chatting User',
@ -338,7 +338,7 @@ describe('Message', () => {
Message: [
expect.objectContaining({
id: expect.any(String),
indexId: '0',
indexId: 0,
content: 'Some nice message to other chatting user',
senderId: 'chatting-user',
username: 'Chatting User',

View File

@ -9,7 +9,7 @@ enum _MessageOrdering {
type Message {
id: ID!
indexId: String!
indexId: Int!
createdAt: String
updatedAt: String