sdkUpdates.tsx 359 B

12345678910
  1. import {Client} from 'sentry/api';
  2. import SdkUpdatesStore from 'sentry/stores/sdkUpdatesStore';
  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. SdkUpdatesStore.loadSuccess(orgSlug, updates);
  9. }