mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
11 lines
364 B
TypeScript
11 lines
364 B
TypeScript
import type {Client} from 'sentry/api';
|
|
import SdkUpdatesStore from 'sentry/stores/sdkUpdatesStore';
|
|
|
|
/**
|
|
* Load SDK Updates for a specific organization
|
|
*/
|
|
export async function loadSdkUpdates(api: Client, orgSlug: string) {
|
|
const updates = await api.requestPromise(`/organizations/${orgSlug}/sdk-updates/`);
|
|
SdkUpdatesStore.loadSuccess(orgSlug, updates);
|
|
}
|