FoxxMD / context-mod

an event-based, reddit moderation bot built on top of snoowrap and written in typescript
https://contextmod.dev
MIT License
49 stars 11 forks source link

feat: Refactor Dispatched Action db entity to use full-fat Activity #136

Open FoxxMD opened 1 year ago

FoxxMD commented 1 year ago
FoxxMD commented 1 year ago

This seems to work, at least in simple cases, but I found it was not finding all associated Activities correctly when used in real-world. There was also an issue with re-hydrating activities for some reason.

I think the issue stems from using entity manager methods instead of full-fat query builder methods. The EM stuff has always been inconsistent in behavior -- previously experienced it not hydrating thing correctly when implementing Actioned Events selector.

Need to refactor EM usage into explicit query builder which I think will solve this.