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

Function getNotificationPreferences

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected