Kibae Shin
Kibae Shin
Hello, @manvapatel-rbc This was not intended behavior. It's a bug, so I fixed it and released version 0.5.5 to npm. Thanks for reporting the problem. Please let me know if...
@manvapatel-rbc I published 0.5.6 version to npm. Can you check this? If the problem persists, can you show me the entity definition and the code that caused the above error?...
@manvapatel-rbc I think it's a bug. I'll try to find out where the problem is. Thank you. 🙏
Hello, @lzkill @manvapatel-rbc I checked through this test case and there was no problem when updating using BaseEntity and repository. Could you please show me the code where the problem...
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....
Yes, I'll leave it open until this issue is resolved. Please let me know if you have any other issues. Thank you.
@kamal-mnrb Thanks for reporting the bug. Sorry for the late reply, I was on vacation. I'll try to figure out the problem.
@kamal-mnrb I tested it and it works fine for boolean columns. Could you please show me the code to save the origin entity? https://github.com/kibae/typeorm-auditing/blob/79419c21c752382357455e4bdfb29619bc8de49f/src/test/entity/case4.ts#L34-L35 https://github.com/kibae/typeorm-auditing/blob/79419c21c752382357455e4bdfb29619bc8de49f/src/test/case4.spec.ts#L20-L63
Hello, @lzkill In general, it is assumed that the origin entity has the information of the first creator and the last updater. However, I hope that your idea will come...