Skip to content

Commit

Permalink
Fetch all chats for admin view (#139)
Browse files Browse the repository at this point in the history
* fetch all chats for admin

* refactor
  • Loading branch information
Pranshu1902 authored Oct 17, 2023
1 parent 415a1b3 commit 914079f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ export const API = {
search: string;
offset: number;
limit: number;
} = { limit, offset, search }
fetch: string;
} = { limit, offset, search, fetch: "all" }
) => request(`projects/${project_id}/chats`, "GET", filters),
get: (project_id: string, id: string) =>
request(`projects/${project_id}/chats/${id}`),
Expand Down

1 comment on commit 914079f

@vercel
Copy link

@vercel vercel bot commented on 914079f Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.