sdkUpdates.tsx 359 B

12345678910
  1. import SdkUpdatesActions from 'sentry/actions/sdkUpdatesActions';
  2. import {Client} from 'sentry/api';
  3. /**
  4. * Load SDK Updates for a specific organization
  5. */
  6. export async function loadSdkUpdates(api: Client, orgSlug: string) {
  7. const updates = await api.requestPromise(`/organizations/${orgSlug}/sdk-updates/`);
  8. SdkUpdatesActions.load(orgSlug, updates);
  9. }