Skip to content

Commit 9eea558

Browse files
vbillard91jenkinsEdificePublic
authored andcommitted
fix build.sh and react update api (#902)
1 parent 9bec447 commit 9eea558

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

build.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ install () {
203203
cd -
204204
}
205205

206+
buildBroker () {
207+
cd broker-parent/broker-client/quarkus
208+
./build.sh install
209+
cd -
210+
}
211+
206212
test () {
207213
if [ -z "$JAVA_8_HOME" ]
208214
then
@@ -380,10 +386,7 @@ do
380386
buildBackend
381387
;;
382388
install)
383-
buildFrontend && buildBackend && install
384-
;;
385-
buildBack)
386-
install
389+
buildFrontend && buildBackend && buildBroker
387390
;;
388391
buildBack)
389392
install

conversation/frontend/src/services/queries/hooks/useDeleteMessageFromQueryCache.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const useDeleteMessagesFromQueryCache = () => {
1717
// Update list message
1818
queryClient.setQueriesData(
1919
{ queryKey: folderQueryKeys.messages(folderId) },
20-
(data: InfiniteData<MessageMetadata[]>) => {
20+
(data: InfiniteData<MessageMetadata[]> | undefined) => {
2121
if (!data) return;
2222
const countUnreadMessages = (
2323
messages: MessageMetadata[],
@@ -30,7 +30,8 @@ export const useDeleteMessagesFromQueryCache = () => {
3030

3131
if (!['trash', 'draft', 'outbox'].includes(folderId!)) {
3232
unreadTrashedCount = data.pages.reduce(
33-
(count, page) => count + countUnreadMessages(page, messageIds),
33+
(count: number, page: MessageMetadata[]) =>
34+
count + countUnreadMessages(page, messageIds),
3435
0,
3536
);
3637
}

0 commit comments

Comments
 (0)