Skip to content

Commit

Permalink
fix request params
Browse files Browse the repository at this point in the history
  • Loading branch information
war-in committed Apr 23, 2024
1 parent 04ca35d commit 91d22c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/API/parameters/SearchForRoomsToMentionParams.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type SearchForRoomsToMentionParams = {
searchInput: string;
query: string;
policyID: string;
};

Expand Down
2 changes: 1 addition & 1 deletion src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3450,7 +3450,7 @@ function searchForReports(searchInput: string, policyID?: string) {
},
];

const searchForRoomToMentionParams: SearchForRoomsToMentionParams = {searchInput, policyID: policyID ?? ''};
const searchForRoomToMentionParams: SearchForRoomsToMentionParams = {query: searchInput, policyID: policyID ?? ''};
const searchForReportsParams: SearchForReportsParams = {searchInput};

API.read(policyID ? READ_COMMANDS.SEARCH_FOR_ROOMS_TO_MENTION : READ_COMMANDS.SEARCH_FOR_REPORTS, policyID ? searchForRoomToMentionParams : searchForReportsParams, {
Expand Down

0 comments on commit 91d22c1

Please sign in to comment.