Skip to content

Commit a330a3c

Browse files
authored
Merge pull request #239 from deepgram/lo/fix-types-error
fix: fix body not being serialized somehow
2 parents f598162 + 00c0025 commit a330a3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/packages/ReadClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class ReadClient extends AbstractRestfulClient {
132132
let body;
133133

134134
if (isTextSource(source)) {
135-
body = source;
135+
body = JSON.stringify(source);
136136
} else {
137137
throw new DeepgramError("Unknown source type");
138138
}

0 commit comments

Comments
 (0)