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

Function getNotificationPreferences

packages/shared/src/graphql/notifications.ts:300–308  ·  view source on GitHub ↗
(
  params: FetchParams[],
)

Source from the content-addressed store, hash-verified

298>;
299
300export const getNotificationPreferences = async (
301 params: FetchParams[],
302): Promise<NotificationPreference[]> => {
303 const res = await gqlBatchRequest<{
304 notificationPreferences: NotificationPreference[];
305 }>(NOTIFICATION_PREFERENCES_QUERY, { data: params });
306
307 return res.notificationPreferences;
308};
309
310export const notificationPreferenceMap: Partial<
311 Record<NotificationType, NotificationPreferenceType>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected