fix expected endpoint response

Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
Meredith Lancaster committed 2025-12-09 08:02:38 -08:00
1 parent cc01df9878
commit 290dbce022
2 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -51,7 +51,7 @@ export type StorageRecordOptions = {
*/
export async function createStorageRecord(
options: StorageRecordOptions
): Promise<string[]> {
): Promise<number[]> {
const retries = options.writeOptions.retry ?? DEFAULT_RETRY_COUNT
const octokit = github.getOctokit(options.token, {retry: {retries}}, retry)
@@ -67,7 +67,7 @@ export async function createStorageRecord(
? JSON.parse(response.data)
: response.data
return data?.storage_records.map((r: {id: number}) => String(r.id))
return data?.storage_records.map((r: {id: number}) => r.id)
} catch (err) {
const message = err instanceof Error ? err.message : err
throw new Error(`Failed to persist storage record: ${message}`)