Sunao Suzuki
10/29/2021, 1:28 AMthis.$use(async (params, next) => {
if ( xxxxxxx === yyyyyy ) {
await this.$executeRaw(`SET app.currentTenant='${tenantId}';`);
}
return next(params);
});
So I want to confirm that in this case the connection of both executeRaw and next is same or not? Or is this any good way to do this?Ryan
10/29/2021, 7:09 AMSunao Suzuki
10/29/2021, 7:18 AMSo I want to confirm that in this case the connection of both executeRaw and next is same or not?
Ryan
10/29/2021, 7:20 AMSunao Suzuki
10/29/2021, 7:48 AM$executeRaw
and next(param)
in my code? Or is it natively supported?Ryan
10/29/2021, 11:46 AMJoël