Postmaster-for-Craft-CMS
Postmaster-for-Craft-CMS copied to clipboard
Delete item from queue on deleting entry
I'm using this plugin to schedule e-mails for an entry once it's created. I want to delete the queued e-mail when I delete that certain entry, because the e-mail is not needed anymore.
There's no entry_id column in the table postmasterqueue the make the selection of only rows with that entry_id. There's only a model with an entry object, but that would force me to select every row, dive in that object and match it against the deleted entry_id. Not very performant once there are hundreds of queued messages.
Can you implement this feature or point me in the right direction implementing it? Thanks.