From 0995b1231a689f1ffade0e2387a43dd22419b317 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Fri, 1 Apr 2022 21:17:46 +0530 Subject: [PATCH] fix: use string values in business catalog --- src/Socket/business.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Socket/business.ts b/src/Socket/business.ts index 101c262..0201c57 100644 --- a/src/Socket/business.ts +++ b/src/Socket/business.ts @@ -32,17 +32,17 @@ export const makeBusinessSocket = (config: SocketConfig) => { { tag: 'limit', attrs: { }, - content: Buffer.from([ 49, 48 ]) + content: Buffer.from(limit.toString()) }, { tag: 'width', attrs: { }, - content: Buffer.from([ 49, 48, 48 ]) + content: Buffer.from('100') }, { tag: 'height', attrs: { }, - content: Buffer.from([ 49, 48, 48 ]) + content: Buffer.from('100') } ] } @@ -71,22 +71,22 @@ export const makeBusinessSocket = (config: SocketConfig) => { { tag: 'collection_limit', attrs: { }, - content: Buffer.from([ 49, 48 ]) + content: Buffer.from(limit.toString()) }, { tag: 'item_limit', attrs: { }, - content: Buffer.from([ limit ]) + content: Buffer.from(limit.toString()) }, { tag: 'width', attrs: { }, - content: Buffer.from([ 49, 48, 48 ]) + content: Buffer.from('100') }, { tag: 'height', attrs: { }, - content: Buffer.from([ 49, 48, 48 ]) + content: Buffer.from('100') } ] }