Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Prefix the JSON file name #34

@justin-umesh

Description

@justin-umesh

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`;`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions