sns-sqs-big-payload icon indicating copy to clipboard operation
sns-sqs-big-payload copied to clipboard

Prefix the JSON file name

Open justin-umesh opened this issue 3 years ago • 2 comments

Hi, I want to prefix the JSON file with custom value.

` async sendJSON(message: unknown, options: SqsMessageOptions = {}, jsonprefix): Promise { const messageBody = JSON.stringify(message); const msgSize = Buffer.byteLength(messageBody, 'utf-8');

    if ((msgSize > this.messageSizeThreshold && this.largePayloadThoughS3) || this.allPayloadThoughS3) {
        const payloadId = uuid();
        const payloadKey = `${jsonprefix}${payloadId}.json`;`

justin-umesh avatar May 04 '21 10:05 justin-umesh

Hi @justin-umesh This sounds like a good idea, are you willing to submit a pull request with the necessary changes?

habmic avatar May 04 '21 11:05 habmic

Hi, I have created the PR. Please review. https://github.com/aspecto-io/sns-sqs-big-payload/pull/35

justin-umesh avatar May 04 '21 12:05 justin-umesh