fetchSentryAppInstallations.tsx 504 B

123456789101112
  1. import {Client} from 'sentry/api';
  2. import SentryAppInstallationStore from 'sentry/stores/sentryAppInstallationsStore';
  3. import {SentryAppInstallation} from 'sentry/types';
  4. const fetchSentryAppInstallations = async (api: Client, orgSlug: string) => {
  5. const installsUri = `/organizations/${orgSlug}/sentry-app-installations/`;
  6. const installs: SentryAppInstallation[] = await api.requestPromise(installsUri);
  7. SentryAppInstallationStore.load(installs);
  8. };
  9. export default fetchSentryAppInstallations;