From cd3d784a1d3e5cb6d536b4d48f72dc89243ca45c Mon Sep 17 00:00:00 2001 From: Carl Brugger Date: Fri, 6 Oct 2023 19:07:37 -0500 Subject: [PATCH] fix:correct function call --- src/wrapper/RecordsClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrapper/RecordsClient.ts b/src/wrapper/RecordsClient.ts index 5a26f77b..4530c447 100644 --- a/src/wrapper/RecordsClient.ts +++ b/src/wrapper/RecordsClient.ts @@ -18,7 +18,7 @@ export class Records extends FernRecords { request: Flatfile.RecordData[], requestOptions?: FernRecords.RequestOptions ): Promise { - const body = pako.deflate(JSON.stringify(request)); + const body = pako.gzip(JSON.stringify(request)); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production,