Open manvapatel-rbc opened 1 year ago
Hello, @manvapatel-rbc Can you tell me if your Entity inherits from BaseEntity? And what database do you use? 🙏
I found the cause of this issue. This project uses TypeORM's subscriber feature. Looking at the code inside TypeORM's UpdateQueryBuilder.execute(), it doesn't pass the where condition when calling AfterUpdate subscriber. So, I don't think there is a way to fix this issue at this time. I'll submit a patch to TypeORM to fix this issue.
Ohh okay. Thanks for looking into it! So do you want me keep this issue open for the time being?
Yes, I'll leave it open until this issue is resolved. Please let me know if you have any other issues. Thank you.
Hi @kibae was there a patch submitted to typeorm regarding this one? Can't find it.
Hello again!, I noticed that the update does not work when using typeorm query builder (https://orkhan.gitbook.io/typeorm/docs/select-query-builder) I have a query like this:
This does insert an update record in the audit table, but all the values are NULL.
Just wanted to know if this was a bug or if this is not supported.
Thank you!