*Patch hooks and events are not working as expected.
Heres my model;
class Post extends Model {
get handlers() {
return [HandlerTypes.PATCH];
}
}
Here is my hooks:
// app/Hooks/Post/onBeforePatch.ts
import { IBeforePatchContext } from "axe-api";
export default async ({}: IBeforePatchContext) => {
};
// app/Hooks/Post/onAfterPatch.ts
import { IAfterPatchContext } from "axe-api";
export default async ({}: IAfterPatchContext) => {
};
*Patchhooks and events are not working as expected.Heres my model;
Here is my hooks: