fix: rename hooks enum

This commit is contained in:
abdou6666
2024-12-13 15:51:26 +01:00
parent d0ab39f6c3
commit 04851f7048
2 changed files with 9 additions and 6 deletions

View File

@@ -247,7 +247,7 @@ declare module '@nestjs/event-emitter' {
T = IHookEntityOperationMap[E]['schema'],
> =
| {
[EHook.preValidate]: TPreValidate<T>;
[EHook.preCreateValidate]: TPreValidate<T>;
}
| {
[EHook.preCreate]: TPreCreate<T>;
@@ -259,7 +259,7 @@ declare module '@nestjs/event-emitter' {
[EHook.preDelete]: TPreDelete<T>;
}
| {
[EHook.postValidate]: TPostValidate<T>;
[EHook.postCreateValidate]: TPostValidate<T>;
}
| {
[EHook.postCreate]: TPostCreate<T>;