Skip to content

Conversation

@jeevitha011
Copy link
Contributor

No description provided.

if (profile === 'mtx-sidecar') {
const ds = await cds.connect.to("cds.xt.DeploymentService");
if (separateObjectStore === "separate") {
ds.after('subscribe', async (_, req) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_ ?

Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@jeevitha011 jeevitha011 May 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeevitha011 jeevitha011 merged commit b192a6f into main May 7, 2025
4 checks passed
@jeevitha011 jeevitha011 deleted the shared-objectDeletion branch May 7, 2025 08:52
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

Successfully merging this pull request may close these issues.

4 participants