File tree Expand file tree Collapse file tree
apps/commerce-api/src/main/java/com/loopers/application/event/useraction Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- package com .loopers .application .event .product ;
1+ package com .loopers .application .event .useraction ;
22
3- import com .loopers .application .product .ProductLookedUpEvent ;
3+ import com .loopers .application .product .UserActionEvent ;
44import com .loopers .domain .actionlog .UserActionLog ;
55import com .loopers .infrastructure .actionlog .UserActionLogJpaRepository ;
66import lombok .RequiredArgsConstructor ;
1212
1313@ Component
1414@ RequiredArgsConstructor
15- public class ProductEventHandler {
15+ public class UserActionLogEventHandler {
1616 private final UserActionLogJpaRepository userActionLogJpaRepository ;
1717
1818 @ Transactional (propagation = Propagation .REQUIRES_NEW )
1919 @ TransactionalEventListener (phase = TransactionPhase .AFTER_COMMIT )
20- public void onProductLookedUp ( ProductLookedUpEvent event ) {
20+ public void onUserAction ( UserActionEvent event ) {
2121 UserActionLog userActionLog = UserActionLog .create (event );
2222 userActionLogJpaRepository .save (userActionLog );
23-
2423 }
2524}
You can’t perform that action at this time.
0 commit comments