-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrderLine ID is undefined on OrderLineEvent deleted
event
#2574
Comments
deleted
event
Hi, this is a peculiarity with TypeORM that seems to mutate the object upon calling the |
I see, thanks! Do you want me to send a PR for that? |
I'm in the process of fixing, but thanks for the offer. :) When I tried to fix in the same way as the linked commit, it revealed an underlying issue that also needs fixing at the same time. |
Super, thanks a lot then! |
Describe the bug
Hello! I'm writing a plugin to do some operations with the id of an OrderLine once it's removed from an order. I'm using the EventBus to filter the events and get only the ones where
event.type === 'deleted'
. In the subscribe function however, the orderLine id is undefined. Is this the expected behaviour or I'm missing something?To Reproduce
Steps to reproduce the behavior:
OrderLineEvent
sOrderLine
sevent.type
iscreated
orupdated
the id is presentevent.type
isdeleted
the id is undefinedExpected behavior
To be able to access the id before the cancellation of an OrderLine
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: