MCPcopy Index your code
hub / github.com/coder/coder / chatsByWorkspace

Function chatsByWorkspace

site/src/api/queries/chats.ts:77–84  ·  view source on GitHub ↗
(workspaceIds: string[])

Source from the content-addressed store, hash-verified

75export const chatsByWorkspaceKeyPrefix = [...chatsKey, "by-workspace"] as const;
76
77export const chatsByWorkspace = (workspaceIds: string[]) => {
78 const sorted = workspaceIds.toSorted();
79 return {
80 queryKey: [...chatsKey, "by-workspace", sorted],
81 queryFn: () => API.experimental.getChatsByWorkspace(sorted),
82 enabled: workspaceIds.length > 0,
83 };
84};
85
86/**
87 * Updates a single chat inside every page of the infinite chats query

Callers 1

WorkspacesPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected