Closed prakritidev closed 3 years ago
So you are saying that req.db isn't a valid object? If so that isn't this module that creates or maintains that object. Its the standard @sap/hdbext. If that is the case you need to report this problem to @sap/hdbext. I can't help you here in this promise wrapper module with functionality that isn't part of this module.
Is the above code complete? I see you are creating the hdbext.middleware but you aren't returning it or setting it into express. I don't really see from the snipped you have above how req.db would get filled.
Hi,
I am using Saphanaacademy Saas Yo generator for multitenant application boilerplate code. I tried to send the HDI credentials of a tenant stored in the service manager, but that did not work. Any workaround for this ?
Middleware injection to the express server.
` if (environment == 'production') { app.use(function (req, res, next) {
}) }`
Accessing the db from req in my api
I don't get any error or warning or db object in my req.