fix(documents): Fix BulkResponseItem type casting in document-session
This commit is contained in:
@@ -241,7 +241,7 @@ export class DocumentSession<T = unknown> {
|
||||
|
||||
const action = Object.keys(item)[0];
|
||||
if (!action) continue;
|
||||
const result = item[action as keyof typeof item] as Record<string, unknown> | undefined;
|
||||
const result = item[action as keyof typeof item] as unknown as Record<string, unknown> | undefined;
|
||||
|
||||
if (result?.error) {
|
||||
failed++;
|
||||
|
||||
Reference in New Issue
Block a user