-
Notifications
You must be signed in to change notification settings - Fork 10
MT: shared case - on unsubscribe deletion #198
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
Conversation
| if (profile === 'mtx-sidecar') { | ||
| const ds = await cds.connect.to("cds.xt.DeploymentService"); | ||
| if (separateObjectStore === "separate") { | ||
| ds.after('subscribe', async (_, req) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In many event hook functions, such as ds.after, the callback receives multiple arguments—typically the first being some result or context, and the second being the request object.
In such cases, the underscore _ is commonly used as a placeholder for the first argument to indicate that it is being intentionally ignored, and only the second argument (which is needed) will be used.
| Prefix: tenant, | ||
| }); | ||
|
|
||
| for await (const page of paginator) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws-sdk doesn't provide methods to directly delete with a given prefix.
re: https://stackoverflow.com/a/3196342
https://docs.aws.amazon.com/AmazonS3/latest/API/s3_example_s3_DeleteObjects_section.html
No description provided.