Skip to content

Commit 7699ef7

Browse files
pvdzjdalton
andauthored
Fix package shallow command due to type mismatch (#501)
Co-authored-by: John-David Dalton <jdalton@users.noreply.github.com>
1 parent bd09c0c commit 7699ef7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands/package/fetch-purls-shallow-score.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,9 @@ export async function fetchPurlsShallowScore(
4141
return handleFailedApiResponse('batchPackageFetch', result)
4242
}
4343

44-
return { ok: true, data: result }
44+
// TODO: seems like there's a bug in the typing since we absolutely have to return the .data here
45+
return {
46+
ok: true,
47+
data: result.data as SocketSdkReturnType<'batchPackageFetch'>
48+
}
4549
}

0 commit comments

Comments
 (0)