Skip to content
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

Update subscriber "updated at" field on unsubscribe #915

Closed
t3hmrman opened this issue Aug 21, 2022 · 3 comments
Closed

Update subscriber "updated at" field on unsubscribe #915

t3hmrman opened this issue Aug 21, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@t3hmrman
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Maybe it's a philosophical issue, but I consider an unsubscribe to be an "update" to subscriber information (just one that the administrator didn't perform). Listmonk currently does not update the "updated at" column when a subscriber unsubscribes, despite the subscriber data changing.

Describe the solution you'd like
Updating the updated at field when a subscriber unsubscribes.

@t3hmrman t3hmrman added the enhancement New feature or request label Aug 21, 2022
@knadh
Copy link
Owner

knadh commented Aug 28, 2022

The subscriber_lists table that holds the actual subscription also has an updated_at field. It would be more appropriate to update that instead of the subscriber's own updated_at I'd think.

@t3hmrman
Copy link
Contributor Author

Ahhh that makes sense -- the subscriber_lists table is the relation table (so one might think of it like a subscriptions table?) -- if that's the case it does make much more sense to categorize this as an update to the subscription rather than the user per-say.

@knadh knadh closed this as completed in 879bff8 Nov 1, 2022
@peterjcarroll
Copy link

peterjcarroll commented Nov 16, 2023

I realize that is an old, closed issue, but a use case I have where this would be helpful: I am attempting to get users who are new/updated from the API.

I'm calling the api using this url:
/api/subscribers?query=subscribers.updated_at>'2023-11-15'
and right now it won't give me users who have unsubscribed recently.

Is there another way to query the api to get that info? I tried using the url
/api/subscribers?query=subscriber_lists.updated_at>'2023-11-15'
but that returns no results.

I highly prefer using the api vs querying the database directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants