Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix the JSON file name #34

Open
justin-umesh opened this issue May 4, 2021 · 2 comments
Open

Prefix the JSON file name #34

justin-umesh opened this issue May 4, 2021 · 2 comments

Comments

@justin-umesh
Copy link

justin-umesh commented May 4, 2021

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`;`
@habmic
Copy link
Member

habmic commented May 4, 2021

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

@justin-umesh
Copy link
Author

Hi,
I have created the PR. Please review.
#35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants