Skip to content

Commit

Permalink
fix(message): change limit to take and update proto to send createdAt…
Browse files Browse the repository at this point in the history
… through grpc as a string instead of int32
  • Loading branch information
lambiengcode committed Jul 30, 2024
1 parent 253976a commit 97df309
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"rxjs": "^7.8.1",
"typeorm": "^0.3.20",
"typesense": "^1.8.2",
"waterbus-proto": "^1.1.4"
"waterbus-proto": "^1.1.5"
},
"resolutions": {
"inquirer": "^8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/features/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class ChatsService {
})
.orderBy('message.createdAt', 'DESC')
.skip(query.skip)
.limit(query.limit)
.take(query.limit)
.getMany();
}

Expand Down
4 changes: 2 additions & 2 deletions src/services/chat.proto.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ export class ChatGrpcClientService implements OnModuleInit {
status: message.status,
meeting: message.meeting.id,
ccus: ccus,
createdAt: message.createdAt.getTime(),
updatedAt: message.updatedAt.getTime(),
createdAt: message.createdAt.getTime().toString(),
updatedAt: message.updatedAt.getTime().toString(),
createdBy: {
id: message.createdBy.id,
userName: message.createdBy.userName,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6256,10 +6256,10 @@ watchpack@^2.4.0:
glob-to-regexp "^0.4.1"
graceful-fs "^4.1.2"

waterbus-proto@^1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/waterbus-proto/-/waterbus-proto-1.1.4.tgz#6fc3add2309a52054d9aa3aee6c64a810b78d011"
integrity sha512-kY08Me8Iwp6w7N2fMXj/pB70dkJjd4ntpsQ/kXscf9cKavs0d/UTKLcQ9BPYOhiERx134iDuV5NYKislPkAYCg==
waterbus-proto@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/waterbus-proto/-/waterbus-proto-1.1.5.tgz#5e95d06caa493c328c325e4b5857ad205a4e18d6"
integrity sha512-8OIPP/k1MeG2fixceQbKhGJk5Cff9dmjVWmzeSvYyy6jvM//WaXxGhpLZxnXOR6xESQe+9rlZGZcMF+w6Tqh8A==
dependencies:
"@grpc/grpc-js" "^1.9.3"
rxjs "^7.8.1"
Expand Down

0 comments on commit 97df309

Please sign in to comment.