MCPcopy Create free account
hub / github.com/dailydotdev/apps / updateFeedbackStatus

Function updateFeedbackStatus

packages/shared/src/graphql/feedback.ts:310–326  ·  view source on GitHub ↗
({
  id,
  status,
  message,
}: {
  id: string;
  status: FeedbackStatus;
  message?: string;
})

Source from the content-addressed store, hash-verified

308};
309
310export const updateFeedbackStatus = async ({
311 id,
312 status,
313 message,
314}: {
315 id: string;
316 status: FeedbackStatus;
317 message?: string;
318}): Promise<Pick<FeedbackItem, 'id' | 'status' | 'updatedAt' | 'replies'>> => {
319 const res = await gqlClient.request<{
320 updateFeedbackStatus: Pick<
321 FeedbackItem,
322 'id' | 'status' | 'updatedAt' | 'replies'
323 >;
324 }>(UPDATE_FEEDBACK_STATUS_MUTATION, { id, status, message });
325 return res.updateFeedbackStatus;
326};
327
328export const feedbackQueryOptions = ({ id }: { id: string }) => ({
329 queryKey: generateQueryKey(RequestKey.Feedback, undefined, id),

Callers 1

FeedbackThreadFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected