When you use the module snippet since it shadows the Module name
import { Module } from '@onixjs/core';
and
It generates issues, the class should be renamed to something else like
to avoid shadowing issues.
Also, the lifecycle requires to return the method result or will stop the flow.
lifecycle: async(appp, metadata, method): Promise<any> => {
// before call
const result = await method();
// before call
return result;
}
When you use the module snippet since it shadows the Module name
and
It generates issues, the class should be renamed to something else like
to avoid shadowing issues.
Also, the lifecycle requires to return the method result or will stop the flow.